comparison include/SDL_config_nintendods.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 b7a48f533966
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 typedef signed char int8_t; 31 typedef signed char int8_t;
31 typedef unsigned char uint8_t; 32 typedef unsigned char uint8_t;
32 typedef signed short int16_t; 33 typedef signed short int16_t;
33 typedef unsigned short uint16_t; 34 typedef unsigned short uint16_t;
34 typedef signed int int32_t; 35 typedef signed int int32_t;
41 #ifndef __PTRDIFF_TYPE__ 42 #ifndef __PTRDIFF_TYPE__
42 typedef unsigned long uintptr_t; 43 typedef unsigned long uintptr_t;
43 #else 44 #else
44 typedef unsigned __PTRDIFF_TYPE__ uintptr_t; 45 typedef unsigned __PTRDIFF_TYPE__ uintptr_t;
45 #endif 46 #endif
46 47 #endif /* !HAVE_STDINT_H */
47 48
48 #define SDL_HAS_64BIT_TYPE 1 49 #define SDL_HAS_64BIT_TYPE 1
49 50
50 /* Useful headers */ 51 /* Useful headers */
51 #define HAVE_SYS_TYPES_H 1 52 #define HAVE_SYS_TYPES_H 1