mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 14:59:05 +08:00
44a4a76bc5
* libcsv port * libcsv versioning * libcsv linkage fix * Update version database * [hashids] Add new port * [hashids] Update version database Co-authored-by: Emanuele Zavallone <emanuele.zavallone@next-informatica.com>
19 lines
366 B
Diff
19 lines
366 B
Diff
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)
|