Mercurial > sdl-ios-xcode
comparison include/SDL_types.h @ 1345:7f32b9bede06
Fixes for Visual C++ 6.0
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 18:36:54 +0000 |
parents | 450721ad5436 |
children | 1b5fbaf1d2c6 |
comparison
equal
deleted
inserted
replaced
1344:2eed9997bd24 | 1345:7f32b9bede06 |
---|---|
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 #include <crtdefs.h> /* For size_t */ | 30 /* FIXME!! */ |
31 typedef unsigned int size_t; | |
32 typedef size_t uintptr_t; | |
31 #endif | 33 #endif |
32 | 34 |
33 /* The number of elements in an array */ | 35 /* The number of elements in an array */ |
34 #define SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) | 36 #define SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) |
35 #define SDL_TABLESIZE(table) SDL_arraysize(table) | 37 #define SDL_TABLESIZE(table) SDL_arraysize(table) |