vcpkg/ports/libuv/ssize_t.patch

15 lines
356 B
Diff
Raw Normal View History

2024-09-03 23:14:30 +03:00
diff --git a/include/uv/win.h b/include/uv/win.h
index 12ac53b4..6e1abd5b 100644
--- a/include/uv/win.h
+++ b/include/uv/win.h
@@ -24,7 +24,9 @@
#endif
#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
+# ifndef ssize_t
typedef intptr_t ssize_t;
+# endif
# define SSIZE_MAX INTPTR_MAX
# define _SSIZE_T_
# define _SSIZE_T_DEFINED