* tests/bindir.at (bindir basic lib test, bindir install tests):
Include stdlib.h rather than declaring abort.
* tests/lt_dlopenext.at (lt_dlopenext error messages): Use
`extern "C"' annotation for dlsym'ed function in C++ mode.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2009-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Fix bindir and dlopen tests for C++ compilers (CC=g++).
+ * tests/bindir.at (bindir basic lib test, bindir install tests):
+ Include stdlib.h rather than declaring abort.
+ * tests/lt_dlopenext.at (lt_dlopenext error messages): Use
+ `extern "C"' annotation for dlsym'ed function in C++ mode.
+
2009-11-25 Peter Rosin <peda@lysator.liu.se>
Fix cross build issue in execute mode test.
]])
AT_DATA([main.c],[[
+#include <stdlib.h>
extern int baz (void);
extern int bar (void);
-extern void abort (void);
int main() {
if (baz () + bar () - 25) abort ();
return 0;
]])
AT_DATA([main.c],[[
+#include <stdlib.h>
extern int baz (void);
extern int bar (void);
-extern void abort (void);
int main() {
if (baz () + bar () - 25) abort ();
return 0;
[[
#include <stdio.h>
+#ifdef __cplusplus
+extern "C"
+#endif
int
run (const char *argument)
{