Skip to content

Commit e0bd573

Browse files
authored
Merge pull request #59 from nealrichardson/patch-1
Locate endian header on Solaris
2 parents 18791c8 + ca0a464 commit e0bd573

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/fast_float/float_common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#else
3333
#if defined(__APPLE__) || defined(__FreeBSD__)
3434
#include <machine/endian.h>
35+
#elif defined(sun) || defined(__sun)
36+
#include <sys/byteorder.h>
3537
#else
3638
#include <endian.h>
3739
#endif
@@ -337,4 +339,4 @@ inline OStream& operator<<(OStream &out, const fast_float::decimal &d) {
337339
return out;
338340
}
339341

340-
#endif
342+
#endif

0 commit comments

Comments
 (0)