From: Ulrich Drepper Date: Sat, 27 May 2006 18:19:23 +0000 (+0000) Subject: Add extern "C" for libdwfl.h and libebl.h. X-Git-Tag: elfutils-0.121~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41cbd7620b0851da148d8aa2d1c21fd304024bba;p=thirdparty%2Felfutils.git Add extern "C" for libdwfl.h and libebl.h. --- diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 34f8f46f2..1a49526d5 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,7 @@ +2006-05-27 Ulrich Drepper + + * libdwfl.h: Add extern "C". + 2006-05-22 Ulrich Drepper * cu.c (addrarange): Handle files without aranges information. diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index 07cf9b098..170ba3e02 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 532c4eca4..01dba09e6 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,7 @@ +2006-05-27 Ulrich Drepper + + * libebl.h: Add extern "C". + 2005-11-25 Roland McGrath * eblregname.c: New file. diff --git a/libebl/libebl.h b/libebl/libebl.h index c27e734b8..301463451 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 */