summaryrefslogtreecommitdiffstats
path: root/thirdparty/wslay/patches
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-11-19 13:28:01 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-11-19 15:47:20 +0100
commita706ef3272e0fcd97398334da74b81d3a5ffa0a1 (patch)
tree2f77752934146692b5b40ef11debcd4840c8205a /thirdparty/wslay/patches
parent42f8bfaff0dc5a94ca351b1eaadc42cb95655b87 (diff)
downloadredot-engine-a706ef3272e0fcd97398334da74b81d3a5ffa0a1.tar.gz
wslay: Sync with upstream 45d22583b
https://github.com/tatsuhiro-t/wslay/commit/45d22583b488f79d5a4e598cc7675c191c5ab53f Mostly style changes, a couple new methods and fixes. Tweak file structure a bit.
Diffstat (limited to 'thirdparty/wslay/patches')
-rw-r--r--thirdparty/wslay/patches/msvcfix.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/thirdparty/wslay/patches/msvcfix.diff b/thirdparty/wslay/patches/msvcfix.diff
new file mode 100644
index 0000000000..f58b6d44f0
--- /dev/null
+++ b/thirdparty/wslay/patches/msvcfix.diff
@@ -0,0 +1,18 @@
+diff --git a/thirdparty/wslay/includes/wslay/wslay.h b/thirdparty/wslay/includes/wslay/wslay.h
+index 77a4e8253f..ac6873613f 100644
+--- a/thirdparty/wslay/includes/wslay/wslay.h
++++ b/thirdparty/wslay/includes/wslay/wslay.h
+@@ -33,6 +33,13 @@ extern "C" {
+ #include <stdlib.h>
+ #include <sys/types.h>
+
++/* GODOT ADDITTION */
++#if defined(_MSC_VER)
++#include <BaseTsd.h>
++typedef SSIZE_T ssize_t;
++#endif
++/* GODOT END */
++
+ /*
+ * wslay/wslayver.h is generated from wslay/wslayver.h.in by
+ * configure. The projects which do not use autotools can set