libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make testsuite code C++ clean again.


From: Ralf Wildenhues
Subject: Make testsuite code C++ clean again.
Date: Sun, 31 Jan 2010 15:36:56 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

Applied to master as obvious.

Cheers,
Ralf

    Make testsuite code C++ clean again.
    
    * tests/resident.at (resident modules): Fix for C++.

diff --git a/tests/resident.at b/tests/resident.at
index 8667ca7..c16a72a 100644
--- a/tests/resident.at
+++ b/tests/resident.at
@@ -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)
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]