]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Make testsuite code C++ clean again.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 31 Jan 2010 14:31:52 +0000 (15:31 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 31 Jan 2010 14:33:27 +0000 (15:33 +0100)
* tests/resident.at (resident modules): Fix for C++.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/resident.at

index b25d9d95fbede659a8b152400c899c022b6b4bcb..5652aa3c8c35513a52f3b51f8397db999caad050 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Make testsuite code C++ clean again.
+       * tests/resident.at (resident modules): Fix for C++.
+
 2010-01-29  Peter Rosin  <peda@lysator.liu.se>
            Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
index 8667ca7fad5f1d74deead324e87b5e4a60e8a4d0..c16a72aca18ed11d7859d118bd703c926330d868 100644 (file)
@@ -59,7 +59,7 @@ main (int argc, char* argv[])
        {
          int (*pf) (void);
          printf ("plugin opened successfully!\n");
-         pf = lt_dlsym (plugin_handle, "setup_plugin");
+         pf = (int (*) (void)) lt_dlsym (plugin_handle, "setup_plugin");
          if (pf)
            pf ();
          else
@@ -100,6 +100,7 @@ main (int argc, char* argv[])
 
 AT_DATA([plugin.c],
 [[#include <stdlib.h>
+#include <stdio.h>
 
 void
 bye (void)
@@ -107,6 +108,9 @@ bye (void)
   puts ("called from atexit handler");
 }
 
+#ifdef __cplusplus
+extern "C"
+#endif
 int
 setup_plugin (void)
 {