import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / solib2.c
index 2cd451321bdd23a0b6f2881f98b422c6beccb022..8c69d8b273e3f71f0ac40a9be5beba91852e0556 100644 (file)
@@ -2,8 +2,18 @@
    library, for use by the solib.exp testcase.  It simply returns
    the cube of its integer argument.
    */
+#ifdef __cplusplus
+extern "C" {
+#endif
+#ifdef PROTOTYPES
+int  solib_main (int  arg)
+#else
 int  solib_main (arg)
   int  arg;
+#endif
 {
   return arg*arg*arg;
 }
+#ifdef __cplusplus
+}
+#endif
This page took 0.033598 seconds and 4 git commands to generate.