projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix error checking for \ at end of regex (this was broken previously)
[musl]
/
include
/
endian.h
diff --git
a/include/endian.h
b/include/endian.h
index
9652c30
..
41ca171
100644
(file)
--- a/
include/endian.h
+++ b/
include/endian.h
@@
-5,7
+5,11
@@
#define __BIG_ENDIAN 4321
#define __PDP_ENDIAN 3412
+#if defined(__GNUC__) && defined(__BYTE_ORDER__)
+#define __BYTE_ORDER __BYTE_ORDER__
+#else
#include <bits/endian.h>
+#endif
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)