diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 9313a557a..0bc8cf29e 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -252,6 +252,13 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | |||
| 252 | : ((T)1 << (sizeof(T)*8-1)) \ | 252 | : ((T)1 << (sizeof(T)*8-1)) \ |
| 253 | ) | 253 | ) |
| 254 | 254 | ||
| 255 | #if ENABLE_PLATFORM_MINGW32 && \ | ||
| 256 | (!defined(__USE_MINGW_ANSI_STDIO) || !__USE_MINGW_ANSI_STDIO) | ||
| 257 | #define LL_FMT "I64" | ||
| 258 | #else | ||
| 259 | #define LL_FMT "ll" | ||
| 260 | #endif | ||
| 261 | |||
| 255 | /* Large file support */ | 262 | /* Large file support */ |
| 256 | /* Note that CONFIG_LFS=y forces bbox to be built with all common ops | 263 | /* Note that CONFIG_LFS=y forces bbox to be built with all common ops |
| 257 | * (stat, lseek etc) mapped to "largefile" variants by libc. | 264 | * (stat, lseek etc) mapped to "largefile" variants by libc. |
| @@ -277,7 +284,7 @@ typedef unsigned long long uoff_t; | |||
| 277 | # define XATOOFF(a) xatoull_range((a), 0, LLONG_MAX) | 284 | # define XATOOFF(a) xatoull_range((a), 0, LLONG_MAX) |
| 278 | # define BB_STRTOOFF bb_strtoull | 285 | # define BB_STRTOOFF bb_strtoull |
| 279 | # define STRTOOFF strtoull | 286 | # define STRTOOFF strtoull |
| 280 | # define OFF_FMT "ll" | 287 | # define OFF_FMT LL_FMT |
| 281 | # endif | 288 | # endif |
| 282 | #else | 289 | #else |
| 283 | /* CONFIG_LFS is off */ | 290 | /* CONFIG_LFS is off */ |
