Commit a8076074702d336b5d9f0103c8420c17bf7a6b4c

Vicent Martí 2011-09-18T20:00:19

Merge pull request #397 from lambourg/development Fix compilation issues with mingw64 headers

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/common.h b/src/common.h
index ed04de2..f4ea1eb 100644
--- a/src/common.h
+++ b/src/common.h
@@ -37,7 +37,9 @@
 
 # define snprintf _snprintf
 
+#ifndef _SSIZE_T_DEFINED
 typedef SSIZE_T ssize_t;
+#endif
 
 #else
 # include <unistd.h>