]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
include/aout/aout64.h: guard ARCH_SIZE with defined()
authorAndrew Hanson <andrew@andrewhanson.dev>
Fri, 26 Sep 2025 10:22:57 +0000 (12:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Sep 2025 10:22:57 +0000 (12:22 +0200)
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>
include/aout/aout64.h

index a85a801a2d78b8f8262d17a54fda11789a296c77..dbe25efd752007e175248333f2f20350d87aabbf 100644 (file)
@@ -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.  */