include/SDL_types.h
changeset 1345 7f32b9bede06
parent 1330 450721ad5436
child 1346 1b5fbaf1d2c6
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)