mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-09 18:26:51 +08:00
The current check for endianness fails on platforms using newlib as the C library, because it provides <machine/endian.h> not <endian.h>. This could be fixed by adding `|| defined(__NEWLIB__)` to the check for targets that provide <machine/endian.h> (i.e. BSD-like targets). A more portable solution is to just check if the compiler has already defined the necessary macros (which is true for GCC and Clang and Intel, at least). Then no header is needed, and it works for platforms that aren't explicitly listed in the conditionals. |
||
|---|---|---|
| .. | ||
| fast_float | ||