diff options
author | Mike Pall <mike> | 2011-06-03 20:21:10 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-06-03 20:21:10 +0200 |
commit | b88eaa11f351257612657352daa0a76e60e66a75 (patch) | |
tree | 74dfaca4baaae5cc935854b5890e9fa1b7acfec8 | |
parent | 8c5935000d2b9bccd6c563b45c6a893f28986ca5 (diff) | |
download | luajit-b88eaa11f351257612657352daa0a76e60e66a75.tar.gz luajit-b88eaa11f351257612657352daa0a76e60e66a75.tar.bz2 luajit-b88eaa11f351257612657352daa0a76e60e66a75.zip |
Add stdint.h replacement for Symbian. Sigh.
-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 |