evil: Add ssize_t typedef for MSVC compatibility

This commit is contained in:
Felipe Magno de Almeida 2020-12-14 22:54:48 -03:00
parent d241b225c1
commit d0d660ec29
1 changed files with 13 additions and 0 deletions

View File

@ -68,6 +68,10 @@ extern "C" {
# define PATH_MAX MAX_PATH
#endif
#ifdef _WIN32
# define _USE_MATH_DEFINES
#endif
#include "evil_dlfcn.h"
#include "evil_fcntl.h"
#include "evil_langinfo.h"
@ -83,6 +87,15 @@ extern "C" {
#define sigsetjmp(Env, Save) setjmp(Env)
#ifdef _MSC_VER
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
#include "evil_macro_wrapper.h"
#ifdef __cplusplus