diff include/SDL_config_win32.h @ 3220:6290f9bd097d

Better check which includes #define used in stdint.h
author Sam Lantinga <slouken@libsdl.org>
date Sun, 02 Aug 2009 12:54:59 +0000
parents b91354fa65a2
children 5db962a9a991
line wrap: on
line diff
--- a/include/SDL_config_win32.h	Sun Aug 02 12:45:20 2009 +0000
+++ b/include/SDL_config_win32.h	Sun Aug 02 12:54:59 2009 +0000
@@ -27,7 +27,7 @@
 
 /* This is a set of defines to configure the SDL features */
 
-#ifndef HAVE_STDINT_H
+#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
 #if defined(__GNUC__) || defined(__DMC__)
 #define HAVE_STDINT_H	1
 #elif defined(_MSC_VER)
@@ -69,7 +69,7 @@
 #endif
 typedef unsigned int uintptr_t;
 #endif /* __GNUC__ || _MSC_VER */
-#endif /* !HAVE_STDINT_H */
+#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
 
 #ifdef _WIN64
 # define SIZEOF_VOIDP 8