[glib/glib-2-28] Update config.h.win32(.in) for VS 2010



commit 41de9eff2ce5a65ae2f915bb466c2b8dcc8a51a5
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Apr 22 18:57:49 2011 +0800

    Update config.h.win32(.in) for VS 2010
    
    VS 2010 ships with stdint.h, so update the file.

 config.h.win32.in |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/config.h.win32.in b/config.h.win32.in
index a94aa0b..07bffcb 100644
--- a/config.h.win32.in
+++ b/config.h.win32.in
@@ -446,7 +446,11 @@
 #ifndef _MSC_VER
 #define HAVE_STDINT_H 1
 #else /* _MSC_VER */
+#if (_MSC_VER >= 1600) /*VS 2010 ships with stdint.h*/
+#define HAVE_STDINT_H 1
+#else
 /* #undef HAVE_STDINT_H */
+#endif
 #endif /* _MSC_VER */
 
 /* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares
@@ -454,7 +458,11 @@
 #ifndef _MSC_VER
 #define HAVE_STDINT_H_WITH_UINTMAX 1
 #else /* _MSC_VER */
+#if (_MSC_VER >= 1600)
+#define HAVE_STDINT_H_WITH_UINTMAX 1
+#else
 /* #undef HAVE_STDINT_H_WITH_UINTMAX */
+#endif
 #endif /* _MSC_VER */
 
 /* Define to 1 if you have the <stdlib.h> header file. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]