Android build "__pure2" redefined -
i installed latest version of android ndk (r11b) on new machine. when compile c++ code, error "__pure2" has been redefined. appears include file math.h
includes sys/cdefs.h
. both of them unconditionally define macro called "__pure2" , both of them define differently.
the same code works fine on older machine. upon investigation, appears on machine $ndk\platforms\android-9\arch-arm\usr\include\sys\cdefs.h not have definition of "__pure2." looks introduced recently. wondering if else has seen problem.
for now, have commented macro definition in sys/cdefs.h
. there better way fix this? regards.
there's bug ticket tracking issue, actually. might want follow further updates, looks fixed in ndk r12. opt using #ifndef work around mentioned in ticket comments.
#ifndef __pure2 #define __pure // whatever original definition #endif
Comments
Post a Comment