From: Peter Rosin Date: Fri, 29 Jan 2010 07:49:45 +0000 (+0100) Subject: * tests/loadlibrary.at: Fix C++ issues. X-Git-Tag: v2.2.7b~27 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f4c63234c91e88495b082a94cab63bebdb0b2484;p=thirdparty%2Flibtool.git * tests/loadlibrary.at: Fix C++ issues. Signed-off-by: Peter Rosin --- diff --git a/ChangeLog b/ChangeLog index 9dce6a827..d7af1836a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-01-29 Peter Rosin + + * tests/loadlibrary.at: Fix C++ issues. + 2010-01-20 Peter Rosin Report proper errors from the loadlibrary loader. diff --git a/tests/loadlibrary.at b/tests/loadlibrary.at index 8315a5d78..30ebd3a49 100644 --- a/tests/loadlibrary.at +++ b/tests/loadlibrary.at @@ -54,8 +54,8 @@ main (int argc, char* argv[]) lt_dlhandle module = NULL; const lt_dlvtable *loadlibrary; const lt_dlvtable *preopen; - lt_dlloader *loader = NULL; - lt_dlloader *next; + lt_dlloader loader = NULL; + lt_dlloader next; const lt_dlvtable *vtable; void *symbol; const char *error; @@ -168,6 +168,9 @@ cleanup: AT_DATA([foomod.c], [[ +#ifdef __cplusplus +extern "C" +#endif int foosym (void); int foosym (void) @@ -178,6 +181,9 @@ foosym (void) AT_DATA([bardep.c], [[ +#ifdef __cplusplus +extern "C" +#endif int bardep (void); int bardep (void) @@ -188,8 +194,14 @@ bardep (void) AT_DATA([barmod.c], [[ +#ifdef __cplusplus +extern "C" { +#endif int bardep (void); int barsym (void); +#ifdef __cplusplus +} +#endif int barsym (void) {