mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
glib-genmarshal.c: Use G_VA_COPY instead of va_copy()
In the code generation portion, va_copy() is not universally available, so use the existing G_VA_COPY macro that in turn calls va_copy() if it is available or call an appropriate emulation otherwise.
This commit is contained in:
parent
b72bb9dd08
commit
d642bf442f
@ -549,7 +549,7 @@ generate_marshal (const gchar *signame,
|
||||
if (has_arg)
|
||||
{
|
||||
g_fprintf (fout, "\n");
|
||||
g_fprintf (fout, " va_copy (args_copy, args);\n");
|
||||
g_fprintf (fout, " G_VA_COPY (args_copy, args);\n");
|
||||
i = 0;
|
||||
for (node = sig->args; node; node = node->next)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user