Pārlūkot izejas kodu

LibC: Only select Elf32_* in ElfW() macro defintion on 32-bit platforms

Andrew Kaster 3 gadi atpakaļ
vecāks
revīzija
f4e30d6b17
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      Userland/Libraries/LibC/elf.h

+ 3 - 3
Userland/Libraries/LibC/elf.h

@@ -39,10 +39,10 @@
 #    include <AK/Types.h>
 #endif
 
-#ifdef __x86_64__
-#    define ElfW(type) Elf64_##type
-#else
+#ifdef __i386__
 #    define ElfW(type) Elf32_##type
+#else
+#    define ElfW(type) Elf64_##type
 #endif
 
 typedef uint8_t Elf_Byte;