vcpkg/ports/shiftmedia-libgnutls/ssize_t_already_define.patch

15 lines
350 B
Diff

diff --git a/SMP/gnutls/gnutls.h b/SMP/gnutls/gnutls.h
index af1c296a69..796d838064 100644
--- a/SMP/gnutls/gnutls.h
+++ b/SMP/gnutls/gnutls.h
@@ -39,7 +39,9 @@
/* Get ssize_t. */
#ifdef _MSC_VER
# include <BaseTsd.h>
+# ifndef ssize_t
typedef SSIZE_T ssize_t;
+# endif
# include <sys/types.h>
#else
# include <sys/types.h>