1 Do not define __USE_FILE_OFFSET64 as it causes fsetpos&fgetpos to be
2 undefined on api levels lower than android-24.
4 diff -u -r ../boost_1_64_0/libs/filesystem/src/operations.cpp ./libs/filesystem/src/operations.cpp
5 --- ../boost_1_64_0/libs/filesystem/src/operations.cpp 2017-04-17 04:22:19.000000000 +0200
6 +++ ./libs/filesystem/src/operations.cpp 2017-08-08 10:08:13.607302273 +0200
8 #define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect,
11 +#if !defined(__ANDROID__)
12 #define __USE_FILE_OFFSET64 // but that is harmless on Windows and on POSIX
13 // 64-bit systems or on 32-bit systems which don't have files larger
14 // than can be represented by a traditional POSIX/UNIX off_t type.
16 // ensure that they are available to all included headers.
17 // That is required at least on Solaris, and possibly on other
21 #define _FILE_OFFSET_BITS 64