comparison include/SDL_config_win32.h @ 3219:b91354fa65a2

Don't redefine types if HAVE_STDINT_H is defined
author Sam Lantinga <slouken@libsdl.org>
date Sun, 02 Aug 2009 12:45:20 +0000
parents 77d6336711fc
children 6290f9bd097d
comparison
equal deleted inserted replaced
3218:81773a1eac83 3219:b91354fa65a2
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(__GNUC__) || defined(__DMC__) 31 #if defined(__GNUC__) || defined(__DMC__)
31 #define HAVE_STDINT_H 1 32 #define HAVE_STDINT_H 1
32 #elif defined(_MSC_VER) 33 #elif defined(_MSC_VER)
33 typedef signed __int8 int8_t; 34 typedef signed __int8 int8_t;
34 typedef unsigned __int8 uint8_t; 35 typedef unsigned __int8 uint8_t;
66 #define _SIZE_T_DEFINED_ 67 #define _SIZE_T_DEFINED_
67 typedef unsigned int size_t; 68 typedef unsigned int size_t;
68 #endif 69 #endif
69 typedef unsigned int uintptr_t; 70 typedef unsigned int uintptr_t;
70 #endif /* __GNUC__ || _MSC_VER */ 71 #endif /* __GNUC__ || _MSC_VER */
72 #endif /* !HAVE_STDINT_H */
71 73
72 #ifdef _WIN64 74 #ifdef _WIN64
73 # define SIZEOF_VOIDP 8 75 # define SIZEOF_VOIDP 8
74 #else 76 #else
75 # define SIZEOF_VOIDP 4 77 # define SIZEOF_VOIDP 4