id summary reporter owner description type status milestone component version severity resolution keywords cc 13274 boost.filesystem compile problem on Android Berkus Beman Dawes "Hello, in attempt to build boost for android with more or less reasonable strict settings (-Werror) I uncovered some bugs which I cannot report on github because these projects have Issues disabled. {{{ /usr/local/opt/android-ndk/android-ndk-r16-beta1//sources/android/support/include/stdio.h:36:25: error: invalid token at start of a p reprocessor expression #if __USE_FILE_OFFSET64 && __ANDROID_API__ < __ANDROID_API_N__ }}} This happens because filesystem defines a ""harmless"" macro: {{{ libs/filesystem/src/operations.cpp:18:9: warning: '__USE_FILE_OFFSET64' macro redefined [-Wmacro-redefined] #define __USE_FILE_OFFSET64 // but that is harmless on Windows and on POSIX ^ }}} While this check was {{{#if defined(__USE_FILE_OFFSET64)}}} in previous android versions, it seems to have changed when they introduced unified headers. It's probably more ""harmless"" to define an integer value in boost.filesystem rather than persuade Google to fix their code." Bugs new To Be Determined filesystem Boost 1.65.0 Problem