Преглед на файлове

Force byte order to little endian, for gcc

Jeremy Soller преди 6 години
родител
ревизия
44f84f406f
променени са 1 файла, в които са добавени 14 реда и са изтрити 0 реда
  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