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:
Chun-wei Fan 2012-08-17 19:22:43 +08:00
parent 69124b2dc4
commit 2954f70d39
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef G_OS_WIN32
#include <io.h>
#endif
#include <glib.h>

View File

@ -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)
{