Godot addition to wslay, fixes MSVC build
This commit is contained in:
parent
aae6c075aa
commit
9233edd344
3 changed files with 28 additions and 0 deletions
5
thirdparty/README.md
vendored
5
thirdparty/README.md
vendored
|
@ -268,6 +268,11 @@ changes are marked with `// -- GODOT --` comments.
|
||||||
- Version: 1.1.0
|
- Version: 1.1.0
|
||||||
- License: MIT
|
- License: MIT
|
||||||
|
|
||||||
|
File extracted from upstream releaze tarball:
|
||||||
|
|
||||||
|
- All `*.c` and `*.h` in `lib/` and `lib/includes/`
|
||||||
|
- `wslay.h` has a small Godot addition to fix MSVC build.
|
||||||
|
See `thirdparty/wslay/msvcfix.diff`
|
||||||
|
|
||||||
## mbedtls
|
## mbedtls
|
||||||
|
|
||||||
|
|
6
thirdparty/wslay/includes/wslay/wslay.h
vendored
6
thirdparty/wslay/includes/wslay/wslay.h
vendored
|
@ -33,6 +33,12 @@ extern "C" {
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/types.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
|
* wslay/wslayver.h is generated from wslay/wslayver.h.in by
|
||||||
|
|
17
thirdparty/wslay/msvcfix.diff
vendored
Normal file
17
thirdparty/wslay/msvcfix.diff
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
diff --git a/thirdparty/wslay/includes/wslay/wslay.h b/thirdparty/wslay/includes/wslay/wslay.h
|
||||||
|
index 2fde81a4e..9c751b05b 100644
|
||||||
|
--- a/thirdparty/wslay/includes/wslay/wslay.h
|
||||||
|
+++ b/thirdparty/wslay/includes/wslay/wslay.h
|
||||||
|
@@ -33,6 +33,12 @@ 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
|
Loading…
Reference in a new issue