Explorar o código

Force byte order to little endian, for gcc

Jeremy Soller %!s(int64=6) %!d(string=hai) anos
pai
achega
44f84f406f
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      include/sys/param.h

+ 14 - 0
include/sys/param.h

@@ -31,4 +31,18 @@
 #include <sys/resource.h>
 #include <limits.h>
 
+/* TODO: Forcing little endian, if you need a big endian system, fix this { */
+#ifndef BIG_ENDIAN
+#define BIG_ENDIAN 4321
+#endif
+
+#ifndef LITTLE_ENDIAN
+#define LITTLE_ENDIAN 1234
+#endif
+
+#ifndef BYTE_ORDER
+#define BYTE_ORDER LITTLE_ENDIAN
+#endif
+/* } */
+
 #endif