mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Fix build on Visual C++
-glib/gmarkup.c: Use G_VA_COPY() instead of va_copy() as va_copy() may not be universally available. -gio/gtestdbus.c: Include io.h on Windows for close()
This commit is contained in:
parent
69124b2dc4
commit
2954f70d39
@ -30,6 +30,9 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef G_OS_WIN32
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
@ -2580,7 +2580,7 @@ _g_markup_collect_attributesv (const gchar *element_name,
|
||||
|
||||
/* Take a copy of the va_list so that we can iterate back over it in case of
|
||||
* errors. */
|
||||
va_copy (ap2, ap);
|
||||
G_VA_COPY (ap2, ap);
|
||||
|
||||
while (type != G_MARKUP_COLLECT_INVALID)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user