Merge pull request #165 from fastfloat/dlemire/guard_endian

Guard endian include
This commit is contained in:
Daniel Lemire 2023-01-09 13:42:11 -05:00 committed by GitHub
commit 177ef91fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,11 @@
#elif defined(sun) || defined(__sun)
#include <sys/byteorder.h>
#else
#ifdef __has_include
#if __has_include(<endian.h>)
#include <endian.h>
#endif //__has_include(<endian.h>)
#endif //__has_include
#endif
#
#ifndef __BYTE_ORDER__