summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormimaki <[email protected]>2021-12-28 17:18:59 +0900
committermimaki <[email protected]>2021-12-28 17:18:59 +0900
commit1f3a385ec5ff6b507ea98904568cafc9a330f0aa (patch)
tree283e24038b3df39c4455943e864541bd38cb73f5 /include
parent6f5c211c78ff369a685bb29f08529e4a8c08f403 (diff)
downloadmruby-1f3a385ec5ff6b507ea98904568cafc9a330f0aa.tar.gz
mruby-1f3a385ec5ff6b507ea98904568cafc9a330f0aa.zip
Fix build error and refine definition of `ssize_t` on MSVC.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/common.h5
1 files changed, 5 insertions, 0 deletions
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 <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
+
/**
* Shared compiler macros
*/