comparison include/SDL_config_win32.h @ 1709:2047ec9bb665 SDL-1.3

Merged gcc on win32 fix from SDL 1.2
author Sam Lantinga <slouken@libsdl.org>
date Sun, 25 Jun 2006 17:17:00 +0000
parents 782fd950bd46
children a1ebb17f9c52
comparison
equal deleted inserted replaced
1708:cd14138a8703 1709:2047ec9bb665
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 #ifdef _MSC_VER 30 #ifdef __GNUC__
31 #define HAVE_STDINT_H 1
32 #elif defined(_MSC_VER)
31 typedef signed __int8 int8_t; 33 typedef signed __int8 int8_t;
32 typedef unsigned __int8 uint8_t; 34 typedef unsigned __int8 uint8_t;
33 typedef signed __int16 int16_t; 35 typedef signed __int16 int16_t;
34 typedef unsigned __int16 uint16_t; 36 typedef unsigned __int16 uint16_t;
35 typedef signed __int32 int32_t; 37 typedef signed __int32 int32_t;
42 #else 44 #else
43 typedef unsigned int uintptr_t; 45 typedef unsigned int uintptr_t;
44 #endif 46 #endif
45 #define _UINTPTR_T_DEFINED 47 #define _UINTPTR_T_DEFINED
46 #endif 48 #endif
47 #else 49 #else /* !__GNUC__ && !_MSC_VER */
48 typedef signed char int8_t; 50 typedef signed char int8_t;
49 typedef unsigned char uint8_t; 51 typedef unsigned char uint8_t;
50 typedef signed short int16_t; 52 typedef signed short int16_t;
51 typedef unsigned short uint16_t; 53 typedef unsigned short uint16_t;
52 typedef signed int int32_t; 54 typedef signed int int32_t;
56 #ifndef _SIZE_T_DEFINED_ 58 #ifndef _SIZE_T_DEFINED_
57 #define _SIZE_T_DEFINED_ 59 #define _SIZE_T_DEFINED_
58 typedef unsigned int size_t; 60 typedef unsigned int size_t;
59 #endif 61 #endif
60 typedef unsigned int uintptr_t; 62 typedef unsigned int uintptr_t;
61 #endif /* _MSC_VER */ 63 #endif /* __GNUC__ || _MSC_VER */
62 #define SDL_HAS_64BIT_TYPE 1 64 #define SDL_HAS_64BIT_TYPE 1
63 65
64 /* Enabled for SDL 1.2 (binary compatibility) */ 66 /* Enabled for SDL 1.2 (binary compatibility) */
65 #define HAVE_LIBC 1 67 #define HAVE_LIBC 1
66 #ifdef HAVE_LIBC 68 #ifdef HAVE_LIBC