Guard endian

This commit is contained in:
Daniel Lemire 2023-01-07 13:28:12 -05:00
parent e92c63295c
commit c8aac4a63d

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__