This commit is contained in:
Christien Rioux 2015-12-12 15:45:40 -08:00
parent 26a739ed0b
commit 90484b4874

View File

@ -12,6 +12,12 @@
#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
@ -31,7 +37,7 @@
#define TLC_COMPATIBLE_UNIX 1 #define TLC_COMPATIBLE_UNIX 1
#endif #endif
#ifdef _WIN32 // Windows #ifdef _WIN32 // Windows
#include<Windows.h> #include<Windows.h>
#include<tchar.h> #include<tchar.h>
@ -75,7 +81,11 @@ BEGIN_TURBOLINECOUNT_NAMESPACE;
typedef off_t tlc_fileoffset_t; typedef off_t tlc_fileoffset_t;
#define TLC_LINECOUNT_FMT "%lld" #define TLC_LINECOUNT_FMT "%lld"
#elif defined(_LARGEFILE64_SOURCE) #elif defined(_LARGEFILE64_SOURCE)
typedef _off64_t tlc_fileoffset_t; #if defined(__CYGWIN__)
typedef _off64_t tlc_fileoffset_t;
#else
typedef off64_t tlc_fileoffset_t;
#endif
#define TLC_LINECOUNT_FMT "%lld" #define TLC_LINECOUNT_FMT "%lld"
#else #else
typedef off_t tlc_fileoffset_t; typedef off_t tlc_fileoffset_t;