-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
In the cmake.config
platforms/unix/plugins/FloatMathPlugin/config.cmake
it says:
# fdlibm.h does not recognize x86_64, so set endianness here for all platforms.
TEST_BIG_ENDIAN (IS_BIG_ENDIAN) IF (NOT IS_BIG_ENDIAN) PLUGIN_DEFINITIONS (-D__LITTLE_ENDIAN=1) ENDIF ()
So basically the cmake is testing IS_BIG_ENDIAN and if not so, then it defines __LITTLE_ENDIAN.
That's fine but the problem is that the old code in the fdlibm.h header is #define __LITTLE_ENDIAN which (1) is a duplicate def and (2) defines to a different value (because it does not define it =1).
So assuming you want to keep the definition at the cmake level (for x64), then in the header file it should be conditional
#ifndef __LITTLE_ENDIAN (if not already defined on the command line)
David Stes