mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Add stdint.h replacement for Symbian. Sigh.
This commit is contained in:
parent
8c5935000d
commit
b88eaa11f3
14
src/lj_def.h
14
src/lj_def.h
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "lua.h"
|
#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. */
|
/* MSVC is stuck in the last century and doesn't have C99's stdint.h. */
|
||||||
typedef __int8 int8_t;
|
typedef __int8 int8_t;
|
||||||
typedef __int16 int16_t;
|
typedef __int16 int16_t;
|
||||||
@ -25,6 +25,18 @@ typedef unsigned __int64 uintptr_t;
|
|||||||
typedef __int32 intptr_t;
|
typedef __int32 intptr_t;
|
||||||
typedef unsigned __int32 uintptr_t;
|
typedef unsigned __int32 uintptr_t;
|
||||||
#endif
|
#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
|
#else
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user