summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertise.dev>2020-12-14 22:54:48 -0300
committerFelipe Magno de Almeida <felipe@expertise.dev>2020-12-15 16:10:26 -0300
commitd0d660ec29a78d66ccac1294e86052578b564f74 (patch)
treec92107e192781bcb0326094685a6af7378c8a48f
parentd241b225c1731565abae72b5f0343ebc1b22adb6 (diff)
evil: Add ssize_t typedef for MSVC compatibility
-rw-r--r--src/lib/evil/evil_private.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/evil/evil_private.h b/src/lib/evil/evil_private.h
index 15402568e9..82a912e8af 100644
--- a/src/lib/evil/evil_private.h
+++ b/src/lib/evil/evil_private.h
@@ -68,6 +68,10 @@ extern "C" {
68# define PATH_MAX MAX_PATH 68# define PATH_MAX MAX_PATH
69#endif 69#endif
70 70
71#ifdef _WIN32
72# define _USE_MATH_DEFINES
73#endif
74
71#include "evil_dlfcn.h" 75#include "evil_dlfcn.h"
72#include "evil_fcntl.h" 76#include "evil_fcntl.h"
73#include "evil_langinfo.h" 77#include "evil_langinfo.h"
@@ -83,6 +87,15 @@ extern "C" {
83 87
84#define sigsetjmp(Env, Save) setjmp(Env) 88#define sigsetjmp(Env, Save) setjmp(Env)
85 89
90#ifdef _MSC_VER
91#ifndef WIN32_LEAN_AND_MEAN
92# define WIN32_LEAN_AND_MEAN
93#endif
94
95#include <BaseTsd.h>
96typedef SSIZE_T ssize_t;
97#endif
98
86#include "evil_macro_wrapper.h" 99#include "evil_macro_wrapper.h"
87 100
88#ifdef __cplusplus 101#ifdef __cplusplus