diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-05-27 18:19:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-05-27 18:19:23 +0000 |
commit | 41cbd7620b0851da148d8aa2d1c21fd304024bba (patch) | |
tree | 9363c4c23871dd09e6740703bb5900b8e5d20929 | |
parent | 3be744790cfa3d8614fe81b1e398c505a7025915 (diff) | |
download | elfutils-41cbd7620b0851da148d8aa2d1c21fd304024bba.tar.gz |
Add extern "C" for libdwfl.h and libebl.h.
-rw-r--r-- | libdwfl/ChangeLog | 4 | ||||
-rw-r--r-- | libdwfl/libdwfl.h | 8 | ||||
-rw-r--r-- | libebl/ChangeLog | 4 | ||||
-rw-r--r-- | libebl/libebl.h | 10 |
4 files changed, 25 insertions, 1 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 34f8f46f..1a49526d 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -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. diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index 07cf9b09..170ba3e0 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -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 */ diff --git a/libebl/ChangeLog b/libebl/ChangeLog index 532c4eca..01dba09e 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -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. diff --git a/libebl/libebl.h b/libebl/libebl.h index c27e734b..30146345 100644 --- a/libebl/libebl.h +++ b/libebl/libebl.h @@ -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 @@ -63,6 +63,10 @@ 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 */ |