---
 src/base/PdfEncrypt.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/base/PdfEncrypt.cpp b/src/base/PdfEncrypt.cpp
index 115925f..06cf8bd 100644
--- a/src/base/PdfEncrypt.cpp
+++ b/src/base/PdfEncrypt.cpp
@@ -38,6 +38,11 @@
 #ifdef PODOFO_HAVE_LIBIDN
 // AES-256 dependencies :
 // SASL
+#if defined(_MSC_VER)
+// Fix missing posix "ssize_t" typedef in MS compilers
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
 #include <stringprep.h>
 #include <openssl/sha.h>
 #endif // PODOFO_HAVE_LIBIDN
--
2.16.1.windows.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to