summaryrefslogtreecommitdiff
path: root/gobject/glib-genmarshal.c
diff options
context:
space:
mode:
authorRon Steinke <rsteinke@src.gnome.org>2001-07-20 19:11:41 +0000
committerRon Steinke <rsteinke@src.gnome.org>2001-07-20 19:11:41 +0000
commit0cf2e3835788a50829085cc9883ac5edfeae091d (patch)
treee76abd68d16d7f84a496176f3f8459be9704990c /gobject/glib-genmarshal.c
parent6d7ee813037c8b1cda721f6b37297a5c89ff18c0 (diff)
Modified to create header files which use G_[BEGIN,END]_DECLS instead of
* gobject/glib-genmarshal.c: Modified to create header files which use G_[BEGIN,END]_DECLS instead of #ifdef __cplusplus ...
Diffstat (limited to 'gobject/glib-genmarshal.c')
-rw-r--r--gobject/glib-genmarshal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject/glib-genmarshal.c b/gobject/glib-genmarshal.c
index fc19d1768..b35264f2a 100644
--- a/gobject/glib-genmarshal.c
+++ b/gobject/glib-genmarshal.c
@@ -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");