diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 367939c962..55882a1097 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -265,3 +265,7 @@ else () # Dummy target to ease invocation add_custom_target(${PROJECT_NAME}-headers-check) endif () + +if (UNIX) + add_definitions(-D_FILE_OFFSET_BITS=64) +endif () diff --git a/src/openrct2/core/FileStream.cpp b/src/openrct2/core/FileStream.cpp index c151ac2917..8f911ef8fc 100644 --- a/src/openrct2/core/FileStream.cpp +++ b/src/openrct2/core/FileStream.cpp @@ -21,11 +21,6 @@ # include #endif -#if defined(__linux__) && !defined(__ANDROID__) -# define ftello ftello64 -# define fseeko fseeko64 -#endif - #ifdef _MSC_VER # define ftello _ftelli64 # define fseeko _fseeki64