diff --git a/CMakeLists.txt b/CMakeLists.txt index 59ca279..3f4dd01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +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) + ADD_DEFINITIONS(-D_LARGEFILE_SOURCE=1 -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/main.cpp b/src/main.cpp index c6fca86..001e909 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -185,4 +185,4 @@ int main(int argc, char **argv) _tprintf(_T(TLC_LINECOUNT_FMT "\n"), count); return 0; -} \ No newline at end of file +}