vcpkg/ports/libgig/0001-msvc-fix-ssize_t.patch
2023-10-09 15:03:09 -07:00

17 lines
340 B
Diff

diff --git a/src/Serialization.h b/src/Serialization.h
index cccfc54..91a8fa4 100644
--- a/src/Serialization.h
+++ b/src/Serialization.h
@@ -40,6 +40,11 @@
#include <assert.h>
#include <functional>
+#ifdef _MSC_VER
+#include <BaseTsd.h>
+using ssize_t = SSIZE_T;
+#endif
+
#ifndef __has_extension
# define __has_extension(x) 0
#endif