diff options
Diffstat (limited to 'src/core/common.h')
-rw-r--r-- | src/core/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h index ebde3a65..44d94370 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -73,11 +73,16 @@ typedef int16_t int16; typedef uint32_t uint32; typedef int32_t int32; typedef uintptr_t uintptr; +typedef intptr_t intptr; typedef uint64_t uint64; typedef int64_t int64; // hardcode ucs-2 typedef uint16_t wchar; +#if defined(_MSC_VER) +typedef ptrdiff_t ssize_t; +#endif + #ifndef nil #define nil NULL #endif |