Add extern "C" for libdwfl.h and libebl.h.
authorUlrich Drepper <drepper@redhat.com>
Sat, 27 May 2006 18:19:23 +0000 (18:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 27 May 2006 18:19:23 +0000 (18:19 +0000)
libdwfl/ChangeLog
libdwfl/libdwfl.h
libebl/ChangeLog
libebl/libebl.h

index 34f8f46..1a49526 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-27  Ulrich Drepper  <drepper@redhat.com>
+
+       * libdwfl.h: Add extern "C".
+
 2006-05-22  Ulrich Drepper  <drepper@redhat.com>
 
        * cu.c (addrarange): Handle files without aranges information.
index 07cf9b0..170ba3e 100644 (file)
@@ -89,6 +89,10 @@ typedef struct
 } Dwfl_Callbacks;
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Start a new session with the library.  */
 extern Dwfl *dwfl_begin (const Dwfl_Callbacks *callbacks);
 
@@ -403,4 +407,8 @@ extern int dwfl_module_register_names (Dwfl_Module *mod,
                                       void *arg);
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* libdwfl.h */
index 532c4ec..01dba09 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-27  Ulrich Drepper  <drepper@redhat.com>
+
+       * libebl.h: Add extern "C".
+
 2005-11-25  Roland McGrath  <roland@redhat.com>
 
        * eblregname.c: New file.
index c27e734..3014634 100644 (file)
@@ -1,5 +1,5 @@
 /* Interface for libebl.
-   Copyright (C) 2000, 2001, 2002, 2004, 2005 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006 Red Hat, Inc.
    This file is part of Red Hat elfutils.
 
    Red Hat elfutils is free software; you can redistribute it and/or modify
 typedef struct ebl Ebl;
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Get backend handle for object associated with ELF handle.  */
 extern Ebl *ebl_openbackend (Elf *elf);
 /* Similar but without underlying ELF file.  */
@@ -289,4 +293,8 @@ extern void ebl_gstrtabfinalize (struct Ebl_GStrtab *st, Elf_Data *data);
 /* Get offset in wide char string table for string associated with SE.  */
 extern size_t ebl_gstrtaboffset (struct Ebl_GStrent *se);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* libebl.h */