From a706ef3272e0fcd97398334da74b81d3a5ffa0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 19 Nov 2021 13:28:01 +0100 Subject: 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. --- thirdparty/wslay/patches/msvcfix.diff | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 thirdparty/wslay/patches/msvcfix.diff (limited to 'thirdparty/wslay/patches') 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 + #include + ++/* GODOT ADDITTION */ ++#if defined(_MSC_VER) ++#include ++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 -- cgit v1.2.3