Skip to content

Commit

Permalink
LibC: Only select Elf32_* in ElfW() macro defintion on 32-bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
ADKaster authored and awesomekling committed Jul 21, 2022
1 parent d270c57 commit f4e30d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Userland/Libraries/LibC/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f4e30d6

Please sign in to comment.