mirror of
https://github.com/crioux/turbo-linecount.git
synced 2024-10-27 17:24:01 +00:00
large files
This commit is contained in:
parent
4e3fd39ca8
commit
9394acb552
@ -9,6 +9,7 @@ ELSE()
|
|||||||
FIND_PACKAGE (Threads REQUIRED)
|
FIND_PACKAGE (Threads REQUIRED)
|
||||||
SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||||
SET(CMAKE_C_FLAGS_RELEASE "-O3")
|
SET(CMAKE_C_FLAGS_RELEASE "-O3")
|
||||||
|
ADD_DEFINITIONS(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
ADD_LIBRARY (linecount SHARED src/turbo_linecount.cpp src/turbo_linecount.h)
|
ADD_LIBRARY (linecount SHARED src/turbo_linecount.cpp src/turbo_linecount.h)
|
||||||
|
@ -12,12 +12,6 @@
|
|||||||
#define LINECOUNT_VERSION_MAJOR 1
|
#define LINECOUNT_VERSION_MAJOR 1
|
||||||
#define LINECOUNT_VERSION_MINOR 0
|
#define LINECOUNT_VERSION_MINOR 0
|
||||||
|
|
||||||
#if defined(__CYGWIN__) || defined(__linux__) || defined(__MINGW32__)
|
|
||||||
#ifndef _LARGEFILE64_SOURCE
|
|
||||||
#define _LARGEFILE64_SOURCE 1
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
///////////////////////////////////////////// Headers
|
///////////////////////////////////////////// Headers
|
||||||
|
Loading…
Reference in New Issue
Block a user