Locate endian header on Solaris

This commit is contained in:
Neal Richardson 2021-02-17 13:46:04 -08:00 committed by GitHub
parent 18791c8923
commit ca0a4646e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,8 @@
#else #else
#if defined(__APPLE__) || defined(__FreeBSD__) #if defined(__APPLE__) || defined(__FreeBSD__)
#include <machine/endian.h> #include <machine/endian.h>
#elif defined(sun) || defined(__sun)
#include <sys/byteorder.h>
#else #else
#include <endian.h> #include <endian.h>
#endif #endif
@ -337,4 +339,4 @@ inline OStream& operator<<(OStream &out, const fast_float::decimal &d) {
return out; return out;
} }
#endif #endif