]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Prepare libdw.h for use in C++.
authorUlrich Drepper <drepper@redhat.com>
Sat, 27 May 2006 18:15:40 +0000 (18:15 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 27 May 2006 18:15:40 +0000 (18:15 +0000)
libdw/ChangeLog
libdw/libdw.h

index c6ee77afee5a9778ff8984e0720daec12680498b..95312497d8d4337b5983376bbe0d923cfe8eb832 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-27  Ulrich Drepper  <drepper@redhat.com>
+
+       * libdw.h: Add extern "C".
+
 2006-05-22  Ulrich Drepper  <drepper@redhat.com>
 
        * dwarf_getaranges.c (dwarf_getaranges): Handle files without
index 351aef26ec6b868accbee7b6ef524d20631aac0f..424c354e12dee227d873a4e9fde08b4b42f978d5 100644 (file)
@@ -1,5 +1,5 @@
 /* Interfaces for libdw.
-   Copyright (C) 2002, 2004, 2005 Red Hat, Inc.
+   Copyright (C) 2002, 2004, 2005, 2006 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -194,6 +194,10 @@ typedef void (*__attribute__ ((noreturn)) Dwarf_OOM) (void);
 #endif
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Create a handle for a new debug session.  */
 extern Dwarf *dwarf_begin (int fildes, Dwarf_Cmd cmd);
 
@@ -626,4 +630,8 @@ dwarf_whatform (Dwarf_Attribute *attr)
 }
 #endif /* Optimize.  */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* libdw.h */