summaryrefslogtreecommitdiffstats
path: root/libelf/elf.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-03-08 10:58:11 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-05-02 12:56:13 +0000
commit46a61aa553eb304f399ac2f62c96ad2adbeda3c0 (patch)
tree72b1cd8e4f7fd27acf1c1db81a76ac64aad775ec /libelf/elf.h
parent764dfcb97f5728cb7f4a20f38b3df5f8bd00e05f (diff)
Drop __BEGIN_DECLS and __END_DECLS from elf.h
We don't use those anywhere else. Also, put the 'extern "C"' after the included headers. Change-Id: I3b9fd0d86f148ac770e9335eeb873e8bc7cbb60b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'libelf/elf.h')
-rw-r--r--libelf/elf.h10
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 */