From a50244dc16085a49f4949cf75f6220320480cebd Mon Sep 17 00:00:00 2001 From: erorcun Date: Mon, 21 Dec 2020 23:26:32 +0300 Subject: signed/unsigned fixes, and some other fixes --- src/core/common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/common.h') diff --git a/src/core/common.h b/src/core/common.h index 882e2fae..155b5dba 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 -- cgit v1.2.3