diff options
| author | mimaki <[email protected]> | 2021-12-28 17:18:59 +0900 |
|---|---|---|
| committer | mimaki <[email protected]> | 2021-12-28 17:18:59 +0900 |
| commit | 1f3a385ec5ff6b507ea98904568cafc9a330f0aa (patch) | |
| tree | 283e24038b3df39c4455943e864541bd38cb73f5 /include | |
| parent | 6f5c211c78ff369a685bb29f08529e4a8c08f403 (diff) | |
| download | mruby-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.h | 5 |
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 */ |
