diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d4adae..59ca279 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ ELSE() FIND_PACKAGE (Threads REQUIRED) SET(CMAKE_CXX_FLAGS_RELEASE "-O3") SET(CMAKE_C_FLAGS_RELEASE "-O3") + ADD_DEFINITIONS(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64) ENDIF() ADD_LIBRARY (linecount SHARED src/turbo_linecount.cpp src/turbo_linecount.h) diff --git a/src/turbo_linecount.h b/src/turbo_linecount.h index 0919344..1c01f65 100644 --- a/src/turbo_linecount.h +++ b/src/turbo_linecount.h @@ -12,12 +12,6 @@ #define LINECOUNT_VERSION_MAJOR 1 #define LINECOUNT_VERSION_MINOR 0 -#if defined(__CYGWIN__) || defined(__linux__) || defined(__MINGW32__) -#ifndef _LARGEFILE64_SOURCE -#define _LARGEFILE64_SOURCE 1 -#endif -#endif - #ifdef __cplusplus ///////////////////////////////////////////// Headers