summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/o2narc/elf.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/o2narc/elf.h b/tools/o2narc/elf.h
index 0373f6fd..c5f9f279 100644
--- a/tools/o2narc/elf.h
+++ b/tools/o2narc/elf.h
@@ -5,7 +5,9 @@
#include <inttypes.h>
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Type for a 16-bit quantity. */
typedef uint16_t Elf32_Half;
@@ -2421,6 +2423,8 @@ typedef Elf32_Addr Elf32_Conflict;
#define R_X86_64_NUM 24
-__END_DECLS
+#ifdef __cplusplus
+};
+#endif
#endif /* elf.h */