mirror of
https://github.com/crioux/turbo-linecount.git
synced 2024-10-27 17:24:01 +00:00
compat
This commit is contained in:
parent
26a739ed0b
commit
90484b4874
@ -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
|
||||||
@ -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)
|
||||||
|
#if defined(__CYGWIN__)
|
||||||
typedef _off64_t tlc_fileoffset_t;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user