1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-07 18:30:34 +00:00

working on relaxing c++11 dependency

This commit is contained in:
Lu Wang 2012-09-09 13:58:15 +08:00
parent 5040cf0273
commit 3de65a5156
4 changed files with 6 additions and 5 deletions

View File

@ -52,7 +52,6 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wunused-function")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wunused-function") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wunused-function")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2") #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb")

View File

@ -11,10 +11,12 @@
#include <string> #include <string>
#include <map> #include <map>
static constexpr double EPS = 1e-6; static const void * nullptr = NULL;
static const double EPS = 1e-6;
extern const double id_matrix[6]; extern const double id_matrix[6];
static constexpr double DEFAULT_DPI = 72.0; static const double DEFAULT_DPI = 72.0;
extern const std::map<std::string, std::string> BASE_14_FONT_CSS_FONT_MAP; extern const std::map<std::string, std::string> BASE_14_FONT_CSS_FONT_MAP;
extern const std::map<std::string, std::string> GB_ENCODED_FONT_NAME_MAP; extern const std::map<std::string, std::string> GB_ENCODED_FONT_NAME_MAP;

View File

@ -173,7 +173,7 @@ void HTMLRenderer::embed_font(const path & filepath, GfxFont * font, FontInfo &
Gfx8BitFont * font_8bit = nullptr; Gfx8BitFont * font_8bit = nullptr;
info.use_tounicode = ((suffix == ".ttf") || (param->always_apply_tounicode)); info.use_tounicode = ((suffix == ".ttf") || (param->tounicode >= 0));
if(!get_metric_only) if(!get_metric_only)
{ {

View File

@ -256,7 +256,7 @@ public:
} }
private: private:
static constexpr const char * base64_encoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; static const char * base64_encoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
istream * in; istream * in;
}; };