Mercurial > sdl-ios-xcode
comparison include/SDL_types.h @ 908:6104bfff77ba
Date: Mon, 28 Jun 2004 19:58:08 +0900
From: Hayashi Naoyuki
Subject: SDL_types.h - fix for Tru64 MME
The following two problems are fixed.
1. Type of Uint64 is "long long" in SDL_types.h,
but is "long" in mmbasic.h(Tru64 UNIX MME header file).
2. Uint8, Uint16 and Uint32 are redefined
if you compile a file including mmbasic.h and SDL_types.h.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 18 Jul 2004 19:42:03 +0000 |
parents | b8d311d90021 |
children | bc0b95b02235 |
comparison
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__ */ |