config.h.win32.in: Clean Up and Update
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 21 Jul 2015 03:26:29 +0000 (11:26 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 21 Jul 2015 03:26:29 +0000 (11:26 +0800)
Merge the parts that has things to do with stdint.h and inttypes.h with
the !_MSC_VER portions, and add initial support for Visual Studio 2015,
which added support for C99 snprintf() and vsnprintf().

Not too sure about the !_MSC_VER for C99 snprintf() and vsnprintf(), but
since this file is mainly for Visual Studio builds, anyways...

config.h.win32.in

index 434901032e010dcee0c3be87633eebb56a25c0e7..2fd650fd553c49cbc33227ea5f8cc0b90e19fddd 100644 (file)
 /* Define to 1 if you have the `bind_textdomain_codeset' function. */
 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
+#if (_MSC_VER >= 1900)
 /* Define if you have a version of the snprintf function with semantics as
    specified by the ISO C99 standard. */
-/* #undef HAVE_C99_SNPRINTF */
+#define HAVE_C99_SNPRINTF 1
 
 /* Define if you have a version of the vsnprintf function with semantics as
    specified by the ISO C99 standard. */
-/* #undef HAVE_C99_VSNPRINTF */
+#define HAVE_C99_VSNPRINTF 1
+#endif
 
 /* define to 1 if Carbon is available */
 /* #undef HAVE_CARBON */
 #define HAVE_INT64_AND_I64 1
 
 /* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */
-#ifndef _MSC_VER
-#define HAVE_INTMAX_T 1
-#else /* _MSC_VER */
-#if (_MSC_VER >= 1600)
+#if !defined (_MSC_VER) || (_MSC_VER >= 1600)
 #define HAVE_INTMAX_T 1
-#endif
+#else /* !_MSC_VER || _MSC_VER >= 1600 */
 /* #undef HAVE_INTMAX_T */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER < 1600 */
 
 /* Define to 1 if you have the <inttypes.h> header file. */
-#ifndef _MSC_VER
+#if !defined (_MSC_VER) || (_MSC_VER >= 1800)
 #define HAVE_INTTYPES_H 1
-#else /* _MSC_VER */
+#else /* !_MSC_VER || _MSC_VER >= 1800 */
 /* #undef HAVE_INTTYPES_H */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER < 1800 */
 
 /* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and
    declares uintmax_t. */
 #ifndef _MSC_VER
 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
-#else /* _MSC_VER */
+#else /* !_MSC_VER */
 /* #undef HAVE_INTTYPES_H_WITH_UINTMAX */
 #endif /* _MSC_VER */
 
 #define HAVE_SIG_ATOMIC_T 1
 
 /* Define to 1 if you have the `snprintf' function. */
-#ifndef _MSC_VER
+#if !defined (_MSC_VER) || (_MSC_VER >= 1900)
 #define HAVE_SNPRINTF 1
 #ifdef __DMC__
 #define snprintf _snprintf
 #endif
-#else /* _MSC_VER */
+#else /* !_MSC_VER || _MSC_VER >= 1900 */
 /* #undef HAVE_SNPRINTF */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER < 1900 */
 
 /* Define to 1 if you have the `splice' function. */
 /* #undef HAVE_SPLICE */
 #define HAVE_VASPRINTF 1
 
 /* Define to 1 if you have the `vsnprintf' function. */
-#ifndef _MSC_VER
+#if !defined (_MSC_VER) || (_MSC_VER >= 1500)
 #define HAVE_VSNPRINTF 1
 #ifdef __DMC__
 #define vsnprintf _vsnprintf
 #endif
-#else /* _MSC_VER */
-#if (_MSC_VER >= 1500)
-#define HAVE_VSNPRINTF 1
-#endif /* VS 2008+ has vsnprintf */
+#else /* !_MSC_VER || _MSC_VER >= 1500 */
 /* #undef HAVE_VSNPRINTF */
-#endif /* _MSC_VER */
+#endif /* _MSC_VER < 1500 */
 
 /* Define if you have the 'wchar_t' type. */
 #define HAVE_WCHAR_T 1