Patchwork RFA: consolidate DWARF strings into libiberty

login
register
mail settings
Submitter Tom Tromey
Date April 27, 2012, 4:58 p.m.
Message ID <874ns53ydk.fsf@fleche.redhat.com>
Download mbox | patch
Permalink /patch/155550/
State New
Headers show

Comments

Tom Tromey - April 27, 2012, 4:58 p.m.
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

HJ> You should add extern "C" for C++ on those functions moved to
HJ> libiberty.

Tom> Yeah, sorry about that.
Tom> I'm testing the fix.

Here is what I am checking in.

Tom

ChangeLog:
2012-04-27  Tom Tromey  <tromey@redhat.com>

	* dwarf2.h: Wrap function declarations in extern "C".

Patch

Index: dwarf2.h
===================================================================
--- dwarf2.h	(revision 186908)
+++ dwarf2.h	(working copy)
@@ -361,6 +361,10 @@ 
 #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 @@ 
    recognized.  */
 extern const char *get_DW_CFA_name (unsigned int opc);
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* _DWARF2_H */