| 13 | // This must be first |
| 14 | #if !(defined(__HP_aCC) && defined(_ILP32) && \ |
| 15 | !defined(_STATVFS_ACPP_PROBLEMS_FIXED)) |
| 16 | #define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect, |
| 17 | #endif |
| 18 | #if !defined(__PGI) |
| 19 | #define __USE_FILE_OFFSET64 // but that is harmless on Windows and on POSIX |
| 20 | // 64-bit systems or on 32-bit systems which don't have files larger |
| 21 | // than can be represented by a traditional POSIX/UNIX off_t type. |
| 22 | // OTOH, defining them should kick in 64-bit off_t's (and thus |
| 23 | // st_size)on 32-bit systems that provide the Large File |
| 24 | // Support (LFS)interface, such as Linux, Solaris, and IRIX. |
| 25 | // The defines are given before any headers are included to |
| 26 | // ensure that they are available to all included headers. |
| 27 | // That is required at least on Solaris, and possibly on other |
| 28 | // systems as well. |
| 29 | #else |
| 30 | #define _FILE_OFFSET_BITS 64 |
| 31 | #endif |
| 32 | |
33 | | #if !defined(__QNXNTO__) && !(defined(__HP_aCC) && defined(_ILP32) && \ |
34 | | !defined(_STATVFS_ACPP_PROBLEMS_FIXED)) |
35 | | #define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect, |
36 | | #endif |
37 | | #if !defined(__PGI) |
38 | | #define __USE_FILE_OFFSET64 // but that is harmless on Windows and on POSIX |
39 | | // 64-bit systems or on 32-bit systems which don't have files larger |
40 | | // than can be represented by a traditional POSIX/UNIX off_t type. |
41 | | // OTOH, defining them should kick in 64-bit off_t's (and thus |
42 | | // st_size)on 32-bit systems that provide the Large File |
43 | | // Support (LFS)interface, such as Linux, Solaris, and IRIX. |
44 | | // The defines are given before any headers are included to |
45 | | // ensure that they are available to all included headers. |
46 | | // That is required at least on Solaris, and possibly on other |
47 | | // systems as well. |
48 | | #else |
49 | | #define _FILE_OFFSET_BITS 64 |
50 | | #endif |
51 | | |