Modified to create header files which use G_[BEGIN,END]_DECLS instead of
authorRon Steinke <rsteinke@src.gnome.org>
Fri, 20 Jul 2001 19:11:41 +0000 (19:11 +0000)
committerRon Steinke <rsteinke@src.gnome.org>
Fri, 20 Jul 2001 19:11:41 +0000 (19:11 +0000)
  * gobject/glib-genmarshal.c: Modified to create header files which
use G_[BEGIN,END]_DECLS instead of #ifdef __cplusplus ...

gobject/glib-genmarshal.c

index fc19d17683f0bc7b162be03e7238bc416580f2fa..b35264f2a63dc4406b9ece93f7bf446f57b045fb 100644 (file)
@@ -588,7 +588,7 @@ main (int   argc,
     {
       if (std_includes)
        fprintf (fout, "#include\t<gobject/gmarshal.h>\n\n");
-      fprintf (fout, "#ifdef __cplusplus\nextern \"C\" {\n#endif /* __cplusplus */\n");
+      fprintf (fout, "G_BEGIN_DECLS\n");
     }
 
   /* process input files */
@@ -671,7 +671,7 @@ main (int   argc,
   /* put out trailer */
   if (gen_cheader)
     {
-      fprintf (fout, "\n#ifdef __cplusplus\n}\n#endif /* __cplusplus */\n");
+      fprintf (fout, "\nG_END_DECLS\n");
     }
   fprintf (fout, "\n");