Visual Studio builds: Visual Studio 2013 and later has va_copy()

Update config.h.win32.in and glib/glibconfig.h.win32.in to indicate so.
This commit is contained in:
Chun-wei Fan 2017-06-14 11:48:27 +08:00
parent 951fd642dc
commit ad49479265
2 changed files with 4 additions and 4 deletions

View File

@ -56,9 +56,9 @@
#define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@ #define GLIB_MINOR_VERSION @GLIB_MINOR_VERSION@
/* A 'va_copy' style function */ /* A 'va_copy' style function */
#ifndef _MSC_VER #if !defined (_MSC_VER) || (_MSC_VER >= 1800)
#define G_VA_COPY va_copy #define G_VA_COPY va_copy
#else /* _MSC_VER */ #else /* _MSC_VER && _MSC_VER < 1800 */
/* #undef G_VA_COPY */ /* #undef G_VA_COPY */
#endif /* _MSC_VER */ #endif /* _MSC_VER */

View File

@ -168,9 +168,9 @@ typedef unsigned __int64 guintptr;
#define G_PLATFORM_WIN32 #define G_PLATFORM_WIN32
@GLIB_WIN32_STATIC_COMPILATION_DEFINE@ @GLIB_WIN32_STATIC_COMPILATION_DEFINE@
#ifndef _MSC_VER #if !defined (_MSC_VER) || (_MSC_VER >= 1800)
#define G_VA_COPY va_copy #define G_VA_COPY va_copy
#endif /* not _MSC_VER */ #endif /* not _MSC_VER or 2013 or later */
#ifndef _MSC_VER #ifndef _MSC_VER
#define G_HAVE_ISO_VARARGS 1 #define G_HAVE_ISO_VARARGS 1