fixed ssize_t fix for MinGW

Wed, 07 Aug 2013 09:40:46 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 07 Aug 2013 09:40:46 +0200
changeset 132
c7d7e4eeb76b
parent 131
fc3af16818a3
child 133
0a70e0d36949

fixed ssize_t fix for MinGW

ucx/ucx.h file | annotate | diff | comparison | revisions
--- a/ucx/ucx.h	Tue Aug 06 10:22:03 2013 +0200
+++ b/ucx/ucx.h	Wed Aug 07 09:40:46 2013 +0200
@@ -39,11 +39,12 @@
 #include <stdlib.h>
 
 #ifdef _WIN32
-#ifndef __ssize_t_defined
+#if !(defined __ssize_t_defined || defined _SSIZE_T_)
 #include <BaseTsd.h>
 typedef SSIZE_T ssize_t;
 #define __ssize_t_defined
-#endif /* __ssize_t_defined */
+#define _SSIZE_T_
+#endif /* __ssize_t_defined and _SSIZE_T */
 #else /* !_WIN32 */
 #include <sys/types.h>
 #endif /* _WIN32 */

mercurial