From 1f3a385ec5ff6b507ea98904568cafc9a330f0aa Mon Sep 17 00:00:00 2001 From: mimaki Date: Tue, 28 Dec 2021 17:18:59 +0900 Subject: Fix build error and refine definition of `ssize_t` on MSVC. --- include/mruby/common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/mruby/common.h b/include/mruby/common.h index 90c97cf65..c5cfaeb50 100644 --- a/include/mruby/common.h +++ b/include/mruby/common.h @@ -28,6 +28,11 @@ # define MRB_END_DECL #endif +#if defined _MSC_VER +#include +typedef SSIZE_T ssize_t; +#endif + /** * Shared compiler macros */ -- cgit v1.2.3