summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config.h.in b/src/config.h.in
index 97c1b101..9ba9ad71 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -281,8 +281,17 @@ int wabt_vsnprintf(char* str, size_t size, const char* format, va_list ap);
#endif
#if !HAVE_SSIZE_T
+#if COMPILER_IS_MSVC
+/* define ssize_t identically to how LLVM does, to avoid conflicts if including both */
+#if defined(_WIN64)
+typedef signed __int64 ssize_t;
+#else
+typedef signed int ssize_t;
+#endif /* _WIN64 */
+#else
typedef long ssize_t;
#endif
+#endif
#if !HAVE_STRCASECMP
#if COMPILER_IS_MSVC