From 23c904aca8a75497f99c1a2a010592f8d78e37c8 Mon Sep 17 00:00:00 2001 From: Niels Date: Sat, 20 Jun 2015 14:25:49 +0200 Subject: [PATCH] added fix for ssize_t for MSVC --- src/json.hpp | 5 +++++ src/json.hpp.re2c | 5 +++++ 2 files changed, 10 insertions(+) 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