diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_def.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lj_def.h b/src/lj_def.h index 197df291..eeb55384 100644 --- a/src/lj_def.h +++ b/src/lj_def.h | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | #include "lua.h" | 9 | #include "lua.h" |
| 10 | 10 | ||
| 11 | #ifdef _MSC_VER | 11 | #if defined(_MSC_VER) |
| 12 | /* MSVC is stuck in the last century and doesn't have C99's stdint.h. */ | 12 | /* MSVC is stuck in the last century and doesn't have C99's stdint.h. */ |
| 13 | typedef __int8 int8_t; | 13 | typedef __int8 int8_t; |
| 14 | typedef __int16 int16_t; | 14 | typedef __int16 int16_t; |
| @@ -25,6 +25,18 @@ typedef unsigned __int64 uintptr_t; | |||
| 25 | typedef __int32 intptr_t; | 25 | typedef __int32 intptr_t; |
| 26 | typedef unsigned __int32 uintptr_t; | 26 | typedef unsigned __int32 uintptr_t; |
| 27 | #endif | 27 | #endif |
| 28 | #elif defined(__symbian__) | ||
| 29 | /* Cough. */ | ||
| 30 | typedef signed char int8_t; | ||
| 31 | typedef short int int16_t; | ||
| 32 | typedef int int32_t; | ||
| 33 | typedef long long int64_t; | ||
| 34 | typedef unsigned char uint8_t; | ||
| 35 | typedef unsigned short int uint16_t; | ||
| 36 | typedef unsigned int uint32_t; | ||
| 37 | typedef unsigned long long uint64_t; | ||
| 38 | typedef int intptr_t; | ||
| 39 | typedef unsigned int uintptr_t; | ||
| 28 | #else | 40 | #else |
| 29 | #include <stdint.h> | 41 | #include <stdint.h> |
| 30 | #endif | 42 | #endif |
