mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-17 16:08:21 +01:00
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 ...
This commit is contained in:
@@ -588,7 +588,7 @@ main (int argc,
|
|||||||
{
|
{
|
||||||
if (std_includes)
|
if (std_includes)
|
||||||
fprintf (fout, "#include\t<gobject/gmarshal.h>\n\n");
|
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 */
|
/* process input files */
|
||||||
@@ -671,7 +671,7 @@ main (int argc,
|
|||||||
/* put out trailer */
|
/* put out trailer */
|
||||||
if (gen_cheader)
|
if (gen_cheader)
|
||||||
{
|
{
|
||||||
fprintf (fout, "\n#ifdef __cplusplus\n}\n#endif /* __cplusplus */\n");
|
fprintf (fout, "\nG_END_DECLS\n");
|
||||||
}
|
}
|
||||||
fprintf (fout, "\n");
|
fprintf (fout, "\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user