mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 13:49:01 +08:00
4aedc13abe
* [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>
16 lines
360 B
Diff
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]))
|
|
|