diff options
Diffstat (limited to 'libelf/elf.h')
| -rw-r--r-- | libelf/elf.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libelf/elf.h b/libelf/elf.h index b6112d9d..ba385d38 100644 --- a/libelf/elf.h +++ b/libelf/elf.h @@ -21,12 +21,14 @@ #include <features.h> -__BEGIN_DECLS - /* Standard ELF types. */ #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + /* Type for a 16-bit quantity. */ typedef uint16_t Elf32_Half; typedef uint16_t Elf64_Half; @@ -3682,6 +3684,8 @@ enum #define R_BPF_NONE 0 /* No reloc */ #define R_BPF_MAP_FD 1 /* Map fd to pointer */ -__END_DECLS +#ifdef __cplusplus +} +#endif #endif /* elf.h */ |
