aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/hashids/hashids.patch
blob: e6877fa4d4a0bbe8d6d40cded0e3bd96ded14925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/hashids.c b/src/hashids.c
index 7f0b2f3..8d68509 100644
--- a/src/hashids.c
+++ b/src/hashids.c
@@ -6,6 +6,13 @@
 
 #include "hashids.h"
 
+#ifdef _MSC_VER
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#else
+#include <unistd.h>
+#endif
+
 /* branch prediction hinting */
 #ifndef __has_builtin
 #   define __has_builtin(x) (0)