Skip to content

Commit 177ef91

Browse files
authored
Merge pull request #165 from fastfloat/dlemire/guard_endian
Guard endian include
2 parents e92c632 + c8aac4a commit 177ef91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/fast_float/float_common.h

+4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@
5050
#elif defined(sun) || defined(__sun)
5151
#include <sys/byteorder.h>
5252
#else
53+
#ifdef __has_include
54+
#if __has_include(<endian.h>)
5355
#include <endian.h>
56+
#endif //__has_include(<endian.h>)
57+
#endif //__has_include
5458
#endif
5559
#
5660
#ifndef __BYTE_ORDER__

0 commit comments

Comments
 (0)