1 #ifndef FREEBAYES_LARGEFILESUPPORT_H
2 #define FREEBAYES_LARGEFILESUPPORT_H
3 
4 #ifdef WIN32
5 #define ftell64(a)     _ftelli64(a)
6 #define fseek64(a,b,c) _fseeki64(a,b,c)
7 typedef __int64 off_type;
8 #elif defined(__CYGWIN__)
9 #define ftell64(a)     ftell(a)
10 #define fseek64(a,b,c) fseek(a,b,c)
11 typedef __int64_t off_type;
12 #elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
13 #define ftell64(a)     ftello(a)
14 #define fseek64(a,b,c) fseeko(a,b,c)
15 typedef off_t off_type;
16 #else
17 #define ftell64(a)     ftello(a)
18 #define fseek64(a,b,c) fseeko(a,b,c)
19 typedef __off64_t off_type;
20 #endif
21 
22 #endif
23