comparison 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
comparison
equal deleted inserted replaced
3219:b91354fa65a2 3220:6290f9bd097d
25 25
26 #include "SDL_platform.h" 26 #include "SDL_platform.h"
27 27
28 /* This is a set of defines to configure the SDL features */ 28 /* This is a set of defines to configure the SDL features */
29 29
30 #ifndef HAVE_STDINT_H 30 #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
31 #if defined(__GNUC__) || defined(__DMC__) 31 #if defined(__GNUC__) || defined(__DMC__)
32 #define HAVE_STDINT_H 1 32 #define HAVE_STDINT_H 1
33 #elif defined(_MSC_VER) 33 #elif defined(_MSC_VER)
34 typedef signed __int8 int8_t; 34 typedef signed __int8 int8_t;
35 typedef unsigned __int8 uint8_t; 35 typedef unsigned __int8 uint8_t;
67 #define _SIZE_T_DEFINED_ 67 #define _SIZE_T_DEFINED_
68 typedef unsigned int size_t; 68 typedef unsigned int size_t;
69 #endif 69 #endif
70 typedef unsigned int uintptr_t; 70 typedef unsigned int uintptr_t;
71 #endif /* __GNUC__ || _MSC_VER */ 71 #endif /* __GNUC__ || _MSC_VER */
72 #endif /* !HAVE_STDINT_H */ 72 #endif /* !_STDINT_H_ && !HAVE_STDINT_H */
73 73
74 #ifdef _WIN64 74 #ifdef _WIN64
75 # define SIZEOF_VOIDP 8 75 # define SIZEOF_VOIDP 8
76 #else 76 #else
77 # define SIZEOF_VOIDP 4 77 # define SIZEOF_VOIDP 4