Parcourir la source

Force byte order to little endian, for gcc

Jeremy Soller il y a 6 ans
Parent
commit
44f84f406f
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  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