import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / so-indr-cl.c
index dc29badcbd701203fa4eaf0d9961d6bd6e8237bf..f31800d04bf5b637540432635a809561ac9c4f11 100644 (file)
@@ -3,21 +3,28 @@
    */
 
 #include <stdio.h>
+#ifdef PROTOTYPES
+extern "C" int solib_main (int);
 
+static int
+solib_wrapper (int (*function)(int))
+#else
 extern int solib_main (int);
 
 static int
 solib_wrapper (function)
   int (*function)(int);
+#endif
 {
   return (*function)(100);
 }
 
 
-main ()
+int main ()
 {
   int  result;
 
   /* This is an indirect call to solib_main. */
   result = solib_wrapper (solib_main);
+  return 0;
 }
This page took 0.023566 seconds and 4 git commands to generate.