diff --git a/CMakeLists.txt b/CMakeLists.txt index 8802fb81..2a45e459 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ target_compile_definitions( PUBLIC $<$:TINYXML2_DEBUG> INTERFACE $<$:TINYXML2_IMPORT> PRIVATE $<$:_CRT_SECURE_NO_WARNINGS> + PUBLIC _FILE_OFFSET_BITS=64 ) set_target_properties( diff --git a/Makefile b/Makefile index e76d8ec0..6ca8544e 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ ARFLAGS = cr RM = rm -f RANLIB = ranlib MKDIR = mkdir -p -CXXFLAGS = -fPIC +CXXFLAGS = -D_FILE_OFFSET_BITS=64 -fPIC INSTALL = install INSTALL_PROGRAM = $(INSTALL) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index a71445ea..96b102f1 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -114,9 +114,6 @@ distribution. #define TIXML_FSEEK fseeko #define TIXML_FTELL ftello #endif -#elif defined(__unix__) && defined(__x86_64__) - #define TIXML_FSEEK fseeko64 - #define TIXML_FTELL ftello64 #else #define TIXML_FSEEK fseek #define TIXML_FTELL ftell