summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sysconf.h.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/sysconf.h.in b/include/sysconf.h.in
index d54f58617..59f900433 100644
--- a/include/sysconf.h.in
+++ b/include/sysconf.h.in
@@ -161,6 +161,26 @@
/* Static config, copy from here to below before running autoheader! */
+#ifndef BIG_ENDIAN
+
+/* Big Endian system */
+#undef BIG_ENDIAN
+
+#endif
+
+#ifndef LITTLE_ENDIAN
+
+/* Little Endian system */
+#undef LITTLE_ENDIAN
+
+#endif
+
+/**
+ * NOTE: BIG_ENDIAN and LITTLE_ENDIAN defines should not be left in
+ * by autoheader as they may be defined or may not be, as such we check
+ * if there defined before messing with them!
+ **/
+
#ifdef HAS_SYS_TYPES_H
#include <sys/types.h>
#endif