This commit is contained in:
Christien Rioux 2015-12-12 19:48:22 -08:00
parent 13607b0743
commit 2d27fc56e6

View File

@ -78,14 +78,22 @@ BEGIN_TURBOLINECOUNT_NAMESPACE;
#if (defined (__APPLE__) && defined (__MACH__))
typedef off_t tlc_fileoffset_t;
#ifdef __LP64__
#define TLC_LINECOUNT_FMT "%ld"
#else
#define TLC_LINECOUNT_FMT "%lld"
#endif
#elif defined(_LARGEFILE64_SOURCE)
#if defined(__CYGWIN__)
typedef _off64_t tlc_fileoffset_t;
#else
typedef off64_t tlc_fileoffset_t;
#endif
#ifdef __LP64__
#define TLC_LINECOUNT_FMT "%ld"
#else
#define TLC_LINECOUNT_FMT "%lld"
#endif
#else
typedef off_t tlc_fileoffset_t;
#define TLC_LINECOUNT_FMT "%d"