ref: bb31d7f5c7e1b4b97b2012d9dca26130300cbe72
parent: e4a5cc43d1af9cdda835f29140376d7c3a35fe32
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Dec 1 23:21:47 EST 2021
as: Undef BIG_ENDIAN and LITTLE_ENDIAN There are some systems where BIG_ENDIAN and LITTLE_ENDIAN are defined like macros, even when a pure c99 environment is requested. We tried hard to force these systems to solve the problem, but we couldn't get them fixed in some systems, and in other we didn't find a place where to send the patches.
--- a/src/cmd/as/as.h
+++ b/src/cmd/as/as.h
@@ -22,6 +22,13 @@
SABS = 1 << 5,
};
+/*
+ * some systems polute the namespace defining BIG_ENDIAN and
+ * LITTLE_ENDIAN
+ */
+#undef BIG_ENDIAN
+#undef LITTLE_ENDIAN
+
enum endianess {
BIG_ENDIAN = -1,
LITTLE_ENDIAN = 1