scc

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

commit 8466cca101be5f8a6298cc8e0bb294dee77ad415
parent ae4a3e5293e473ddd6366521a01705637201ce13
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 18 Jan 2023 20:40:01 +0100

libmach: Undef endian macros

Some systems define LITTLE_ENDIAN and BIG_ENDIAN even when
they are supposed to be c99 compliant.

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

diff --git a/src/libmach/libmach.h b/src/libmach/libmach.h @@ -1,3 +1,10 @@ +/* + * some systems define macros with this name even when + * they should be c99 compliant. + */ +#undef LITTLE_ENDIAN +#undef BIG_ENDIAN + #define NBYTES 32 #define OBJ(format,arch,order) ((order) << 10 | (arch) << 5 | (format)) #define FORMAT(t) ((t) & 0x1f)