summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2011-06-03 20:21:10 +0200
committerMike Pall <mike>2011-06-03 20:21:10 +0200
commitb88eaa11f351257612657352daa0a76e60e66a75 (patch)
tree74dfaca4baaae5cc935854b5890e9fa1b7acfec8
parent8c5935000d2b9bccd6c563b45c6a893f28986ca5 (diff)
downloadluajit-b88eaa11f351257612657352daa0a76e60e66a75.tar.gz
luajit-b88eaa11f351257612657352daa0a76e60e66a75.tar.bz2
luajit-b88eaa11f351257612657352daa0a76e60e66a75.zip
Add stdint.h replacement for Symbian. Sigh.
-rw-r--r--src/lj_def.h14
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. */
13typedef __int8 int8_t; 13typedef __int8 int8_t;
14typedef __int16 int16_t; 14typedef __int16 int16_t;
@@ -25,6 +25,18 @@ typedef unsigned __int64 uintptr_t;
25typedef __int32 intptr_t; 25typedef __int32 intptr_t;
26typedef unsigned __int32 uintptr_t; 26typedef unsigned __int32 uintptr_t;
27#endif 27#endif
28#elif defined(__symbian__)
29/* Cough. */
30typedef signed char int8_t;
31typedef short int int16_t;
32typedef int int32_t;
33typedef long long int64_t;
34typedef unsigned char uint8_t;
35typedef unsigned short int uint16_t;
36typedef unsigned int uint32_t;
37typedef unsigned long long uint64_t;
38typedef int intptr_t;
39typedef unsigned int uintptr_t;
28#else 40#else
29#include <stdint.h> 41#include <stdint.h>
30#endif 42#endif