Subject: [Boost-bugs] [Boost C++ Libraries] #13274: boost.filesystem compile problem on Android
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-10-25 08:48:40
#13274: boost.filesystem compile problem on Android
-------------------------------+-------------------------
Reporter: Berkus <berkus@â¦> | Owner: Beman Dawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.65.0 | Severity: Problem
Keywords: |
-------------------------------+-------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13274> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-10-25 09:17:52 UTC