standardise macro names
This commit is contained in:
parent
6ad476284f
commit
8c9f75d521
1 changed files with 5 additions and 5 deletions
|
|
@ -4,14 +4,14 @@
|
|||
* REF: https://gabi.xinuos.com/elf/01-intro.html
|
||||
*/
|
||||
|
||||
#ifndef BFPG_ELF_INTEGERS_H
|
||||
# define BFPG_ELF_INTEGERS_H
|
||||
#ifndef BFPG_ELF_INT_H
|
||||
# define BFPG_ELF_INT_H
|
||||
|
||||
# include <stdint.h>
|
||||
|
||||
/* 32-Bit & 64-Bit Shared Integer Types */
|
||||
# define Elf_Addr(BITS) uint##BITS##_t
|
||||
# define Elf_Off(BITS) uint##BITS##_t
|
||||
# define Elf_Addr(N) uint##N##_t
|
||||
# define Elf_Off(N) uint##N##_t
|
||||
typedef uint16_t Elf_Half; /* Unsigned medium integer */
|
||||
typedef uint32_t Elf_Word; /* Unsigned integer */
|
||||
typedef int32_t Elf_Sword; /* Signed integer */
|
||||
|
|
@ -36,4 +36,4 @@ typedef Elf_Sxword Elf64_Sxword;
|
|||
# undef Elf_Addr
|
||||
# undef Elf_Off
|
||||
|
||||
#endif /* BFPG_ELF_INTEGERS_H */
|
||||
#endif /* BFPG_ELF_INT_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue