From cec0cc744c2aa4fc5ea7772808ab2c4219c8987e Mon Sep 17 00:00:00 2001 From: Yavor Georgiev Date: Thu, 12 Oct 2017 20:25:21 +0200 Subject: [PATCH] define ssize_t the right way on windows --- vendor/json.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vendor/json.hpp b/vendor/json.hpp index c31575c8..530b7a28 100644 --- a/vendor/json.hpp +++ b/vendor/json.hpp @@ -66,8 +66,11 @@ Class @ref nlohmann::basic_json is a good entry point for the documentation. // enable ssize_t for MSVC #ifdef _MSC_VER - #include - using ssize_t = SSIZE_T; + #if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED) + typedef SSIZE_T ssize_t; + #define _SSIZE_T_ + #define _SSIZE_T_DEFINED + #endif #endif /*!