define ssize_t the right way on windows

This commit is contained in:
Yavor Georgiev 2017-10-12 20:25:21 +02:00
parent 308e7fe548
commit cec0cc744c
No known key found for this signature in database
GPG Key ID: 83FC145DA0CCA9C3
1 changed files with 5 additions and 2 deletions

7
vendor/json.hpp vendored
View File

@ -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 <basetsd.h>
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
/*!