diff --git a/src/json.hpp b/src/json.hpp index 3c606366..9b292f1f 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -36,6 +36,11 @@ #endif #endif +// enable ssize_t for MSVC +#ifdef _MSC_VER + using ssize_t = SSIZE_T; +#endif + /*! @brief namespace for Niels Lohmann @see https://github.com/nlohmann diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 976c1d80..666f750d 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -36,6 +36,11 @@ #endif #endif +// enable ssize_t for MSVC +#ifdef _MSC_VER + using ssize_t = SSIZE_T; +#endif + /*! @brief namespace for Niels Lohmann @see https://github.com/nlohmann