Set file offset bits if we're including libdumb and compiling with mingw
@@ -101,9 +101,15 @@ ENDIF()
IF(USE_SUBMODULES)
MESSAGE(STATUS "USE_SUBMODULES=1 flag automatically forces USE_DUMB=1.")
add_definitions(-DUSE_DUMB)
+ if(MINGW)
+ add_definitions(-D_FILE_OFFSET_BITS=64)
+ endif()
ELSEIF(USE_DUMB)
find_package(dumb)
add_definitions(-DUSE_DUMB)
+ if(MINGW)
+ add_definitions(-D_FILE_OFFSET_BITS=64)
+ endif()
ENDIF()
# If modplug has been selected, attempt to find it
