scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit f3482cc95fff13e99fa2bd4a611c7772b0a15742
parent 865668e1c219ec70c83c6e256ea985ec2550f3c4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  2 Dec 2021 04:21:47 +0100

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.

Diffstat:
Msrc/cmd/as/as.h | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/cmd/as/as.h b/src/cmd/as/as.h @@ -22,6 +22,13 @@ enum secflags { 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