comparison include/SDL_types.h @ 1346:1b5fbaf1d2c6

Default to build SDL without MSVCRT
author Sam Lantinga <slouken@libsdl.org>
date Wed, 08 Feb 2006 08:55:33 +0000
parents 7f32b9bede06
children 7ba544e2888d
comparison
equal deleted inserted replaced
1345:7f32b9bede06 1346:1b5fbaf1d2c6
25 #ifndef _SDL_types_h 25 #ifndef _SDL_types_h
26 #define _SDL_types_h 26 #define _SDL_types_h
27 27
28 #include <sys/types.h> 28 #include <sys/types.h>
29 #ifdef _MSC_VER 29 #ifdef _MSC_VER
30 /* FIXME!! */ 30 #ifndef _SIZE_T_DEFINED
31 typedef unsigned int size_t; 31 #ifdef _WIN64
32 typedef unsigned __int64 size_t;
33 #else
34 typedef _W64 unsigned int size_t;
35 #endif
36 #define _SIZE_T_DEFINED
37 #endif
32 typedef size_t uintptr_t; 38 typedef size_t uintptr_t;
33 #endif 39 #endif
34 40
35 /* The number of elements in an array */ 41 /* The number of elements in an array */
36 #define SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) 42 #define SDL_arraysize(array) (sizeof(array)/sizeof(array[0]))