changeset 1841:7677754a1ca5

Ok, slight changes to prevent missing stdint.h with Visual C prior to 2010.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 20 Nov 2012 05:09:30 +0000
parents 3343a61f3262
children 123d1a900f54
files dw.h
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dw.h	Tue Nov 20 04:20:39 2012 +0000
+++ b/dw.h	Tue Nov 20 05:09:30 2012 +0000
@@ -8,8 +8,6 @@
 #define DW_MINOR_VERSION 4
 #define DW_SUB_VERSION 0
 
-#include <stdint.h>
-
 #if !defined(__PHOTON__)
 /* These corespond to the entries in the color
  * arrays in the Win32 dw.c, they are also the
@@ -1393,7 +1391,8 @@
 
 #include <limits.h>
 /* Macros for converting from INT/UINT to and from POINTER without compiler warnings */
-#if _MSC_VER > 1200 || (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 30100 || defined(__has_extension)
+#if _MSC_VER > 1500 || (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 30100 || defined(__has_extension)
+#include <stdint.h>
 /* There has got to be a better way to check for the intptr_t type....
  * for now just include valid versions of Visual C and GCC plus clang.
  */