summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-04-27 16:58:53 +0000
committerTom Tromey <tromey@gcc.gnu.org>2012-04-27 16:58:53 +0000
commitaccea0346fbda651c9b83aa922c5eab8a824dedc (patch)
treecaa9bf81f7a913120d29572fdf5ed1c548fef5c2 /include
parent324612b351f925889304177e6e370463c506a595 (diff)
downloadgcc-accea0346fbda651c9b83aa922c5eab8a824dedc.tar.gz
* dwarf2.h: Wrap function declarations in extern "C".
From-SVN: r186918
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/dwarf2.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 8c5a1bf789c..386191088df 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,5 +1,9 @@
2012-04-27 Tom Tromey <tromey@redhat.com>
+ * dwarf2.h: Wrap function declarations in extern "C".
+
+2012-04-27 Tom Tromey <tromey@redhat.com>
+
* dwarf2.h (enum dwarf_tag, enum dwarf_form, enum dwarf_attribute)
(enum dwarf_location_atom, enum dwarf_type, enum
dwarf_call_frame_info): Remove.
diff --git a/include/dwarf2.h b/include/dwarf2.h
index c86b022b6ea..0be7a99c856 100644
--- a/include/dwarf2.h
+++ b/include/dwarf2.h
@@ -361,6 +361,10 @@ enum dwarf_macro_record_type
#define DW_EH_PE_indirect 0x80
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Return the name of a DW_TAG_ constant, or NULL if the value is not
recognized. */
extern const char *get_DW_TAG_name (unsigned int tag);
@@ -385,4 +389,8 @@ extern const char *get_DW_ATE_name (unsigned int enc);
recognized. */
extern const char *get_DW_CFA_name (unsigned int opc);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* _DWARF2_H */