diff --git a/library/private/Internal.h b/library/private/Internal.h index 59e4792b9..a58e9fd71 100644 --- a/library/private/Internal.h +++ b/library/private/Internal.h @@ -34,6 +34,11 @@ distribution. #define _QUOTEME(x) #x #define QUOT(x) _QUOTEME(x) +#ifdef LINUX_BUILD + #define __USE_FILE_OFFSET64 + #define _FILE_OFFSET_BITS 64 +#endif + // one file for globals #include "dfhack/DFGlobal.h" @@ -60,8 +65,6 @@ using namespace std; #include #include #include - #define __USE_FILE_OFFSET64 - #define _FILE_OFFSET_BITS 64 #include #include #include