[binutils-gdb] include/aout/aout64.h: guard ARCH_SIZE with defined()
Jan Beulich
jbeulich@sourceware.org
Fri Sep 26 10:24:55 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eb4754587f5af963d71cd2e8deb16673d0d8ac95
commit eb4754587f5af963d71cd2e8deb16673d0d8ac95
Author: Andrew Hanson <andrew@andrewhanson.dev>
Date: Fri Sep 26 12:22:57 2025 +0200
include/aout/aout64.h: guard ARCH_SIZE with defined()
Silence -Wundef when ARCH_SIZE is not defined by checking that it is
defined before comparing its value.
Signed-off-by: Andrew Hanson <andrew@andrewhanson.dev>
Diff:
---
include/aout/aout64.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/aout/aout64.h b/include/aout/aout64.h
index a85a801a2d7..dbe25efd752 100644
--- a/include/aout/aout64.h
+++ b/include/aout/aout64.h
@@ -43,7 +43,7 @@ struct external_exec
/* Magic numbers for a.out files. */
-#if ARCH_SIZE==64
+#if defined(ARCH_SIZE) && ARCH_SIZE == 64
#define OMAGIC 0x1001 /* Code indicating object file. */
#define ZMAGIC 0x1002 /* Code indicating demand-paged executable. */
#define NMAGIC 0x1003 /* Code indicating pure executable. */
More information about the Binutils-cvs
mailing list