From 2d27fc56e6ae607464521bca3ee36a67c2cce2e3 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Sat, 12 Dec 2015 19:48:22 -0800 Subject: [PATCH] xfer --- src/turbo_linecount.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/turbo_linecount.h b/src/turbo_linecount.h index 58c95ea..1f48626 100644 --- a/src/turbo_linecount.h +++ b/src/turbo_linecount.h @@ -78,14 +78,22 @@ BEGIN_TURBOLINECOUNT_NAMESPACE; #if (defined (__APPLE__) && defined (__MACH__)) typedef off_t tlc_fileoffset_t; - #define TLC_LINECOUNT_FMT "%lld" + #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 - #define TLC_LINECOUNT_FMT "%lld" + #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"