vcpkg/ports/xcb-util/ssize.patch
Alexander Neumann 4aedc13abe
X Window Part 9/N (some xcb ports) (#27240)
* [xcb-cursor] add port

* [xcb-errors] add port

* [xcb-image] add port

* [xcb-keysyms] add port

* [xcb-util] add port

* [xcb-wm] add port

* v db

* remove xcb-cursor

* Apply CR

Co-authored-by: Billy O'Neal <bion@microsoft.com>

* update ports to new version

* v db

* fix v db

* add missing DESTINATION parameter

* v db

* rename xcb-errors and xcb-wm

* v db

* only apply the patch on windows

* v db

Co-authored-by: Billy O'Neal <bion@microsoft.com>
2022-10-25 21:25:47 -07:00

16 lines
360 B
Diff

diff --git a/src/event.c b/src/event.c
index 88058c4e7..3bc0d635f 100644
--- a/src/event.c
+++ b/src/event.c
@@ -38,6 +38,10 @@
#include <sys/types.h>
+#if !defined ssize_t && defined(_WIN32)
+ #define ssize_t ptrdiff_t
+#endif
+
#define ssizeof(foo) (ssize_t)sizeof(foo)
#define countof(foo) (ssizeof(foo) / ssizeof(foo[0]))