libstdc++: Use GCC's predefined macro for endianness [PR104080]
Instead of hardcoded preprocessor conditionals with explicit target checks, just rely on the fact that __BYTE_ORDER__ is always defined by GCC. libstdc++-v3/ChangeLog: PR libstdc++/104080 * src/c++17/fast_float/LOCAL_PATCHES: Update. * src/c++17/fast_float/fast_float.h (FASTFLOAT_IS_BIG_ENDIAN): Define in terms of __BYTE_ORDER__.
This commit is contained in:
parent
97b9236976
commit
8f6b62e0f0
@ -1,3 +1,4 @@
|
||||
r12-6647
|
||||
r12-6648
|
||||
r12-6664
|
||||
r12-6665
|
||||
|
@ -128,7 +128,9 @@ from_chars_result from_chars_advanced(const char *first, const char *last,
|
||||
#define FASTFLOAT_VISUAL_STUDIO 1
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef __BYTE_ORDER__
|
||||
#define FASTFLOAT_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
||||
#elif defined _WIN32
|
||||
#define FASTFLOAT_IS_BIG_ENDIAN 0
|
||||
#else
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
|
Loading…
Reference in New Issue
Block a user