Open GoogleCodeExporter opened 9 years ago
I confirm the issue. It's a bug in the NDK headers that is specific to x86.
Filed http://code.google.com/p/android/issues/detail?id=39824 to track the
issue there.
The fix should be to include <endian.h>, will check this.
Original comment by di...@google.com
on 16 Nov 2012 at 12:23
I confirmed it's fixed in android-ndk-r8d.
x86 ndk-build succeeds without any patch now.
Original comment by noranb...@gmail.com
on 26 Dec 2012 at 11:38
Revision ea2e9195fc24 modified port_posix.h but
since android-ndk-r8d, this modification is not necessary.
In android-ndk-r8d, #include <sys/endian.h> properly defines __BYTE_ORDER and
_BYTE_ORDER
because '#define _BYTE_ORDER _LITTLE_ENDIAN' is added in <machine/_types.h>,
which is included in <sys/endian.h>.
Original comment by noranb...@gmail.com
on 30 Dec 2012 at 4:54
Original issue reported on code.google.com by
noranb...@gmail.com
on 16 Nov 2012 at 2:30