include/SDL_types.h
changeset 908 6104bfff77ba
parent 769 b8d311d90021
child 912 bc0b95b02235
equal deleted inserted replaced
907:3bd4d7a1ee04 908:6104bfff77ba
    36 /* Basic data types */
    36 /* Basic data types */
    37 typedef enum {
    37 typedef enum {
    38 	SDL_FALSE = 0,
    38 	SDL_FALSE = 0,
    39 	SDL_TRUE  = 1
    39 	SDL_TRUE  = 1
    40 } SDL_bool;
    40 } SDL_bool;
       
    41 
       
    42 #ifdef H_MMBASIC /* mmbasic.h (Tru64 MME) */
       
    43 /* Some of the basic types are already defined in mmbasic.h */
       
    44 typedef signed char	Sint8;
       
    45 typedef signed short	Sint16;
       
    46 typedef signed int	Sint32;
       
    47 #else
    41 typedef unsigned char	Uint8;
    48 typedef unsigned char	Uint8;
    42 typedef signed char	Sint8;
    49 typedef signed char	Sint8;
    43 typedef unsigned short	Uint16;
    50 typedef unsigned short	Uint16;
    44 typedef signed short	Sint16;
    51 typedef signed short	Sint16;
    45 typedef unsigned int	Uint32;
    52 typedef unsigned int	Uint32;
    46 typedef signed int	Sint32;
    53 typedef signed int	Sint32;
       
    54 #endif
    47 
    55 
    48 /* Figure out how to support 64-bit datatypes */
    56 /* Figure out how to support 64-bit datatypes */
    49 #if !defined(__STRICT_ANSI__)
    57 #if !defined(__STRICT_ANSI__)
    50 #if defined(__GNUC__) || defined(__MWERKS__) || defined(__SUNPRO_C) || defined(__DECC)
    58 #ifdef H_MMBASIC /* mmbasic.h (Tru64 MME) */
       
    59 #define SDL_HAS_64BIT_TYPE	long
       
    60 #elif defined(__GNUC__) || defined(__MWERKS__) || defined(__SUNPRO_C) || defined(__DECC)
    51 #define SDL_HAS_64BIT_TYPE	long long
    61 #define SDL_HAS_64BIT_TYPE	long long
    52 #elif defined(_MSC_VER) /* VC++ */
    62 #elif defined(_MSC_VER) /* VC++ */
    53 #define SDL_HAS_64BIT_TYPE	__int64
    63 #define SDL_HAS_64BIT_TYPE	__int64
    54 #endif
    64 #endif
    55 #endif /* !__STRICT_ANSI__ */
    65 #endif /* !__STRICT_ANSI__ */