Browse Source

Add stdint.h replacement for Symbian. Sigh.

Mike Pall 14 years ago
parent
commit
b88eaa11f3
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/lj_def.h

+ 13 - 1
src/lj_def.h

@@ -8,7 +8,7 @@
 
 #include "lua.h"
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER)
 /* MSVC is stuck in the last century and doesn't have C99's stdint.h. */
 typedef __int8 int8_t;
 typedef __int16 int16_t;
@@ -25,6 +25,18 @@ typedef unsigned __int64 uintptr_t;
 typedef __int32 intptr_t;
 typedef unsigned __int32 uintptr_t;
 #endif
+#elif defined(__symbian__)
+/* Cough. */
+typedef signed char int8_t;
+typedef short int int16_t;
+typedef int int32_t;
+typedef long long int64_t;
+typedef unsigned char uint8_t;
+typedef unsigned short int uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long long uint64_t;
+typedef int intptr_t;
+typedef unsigned int uintptr_t;
 #else
 #include <stdint.h>
 #endif