added a define for Win32 to detect already defined ssize_t.

This commit is contained in:
Gunter Knauf 2007-09-18 18:18:34 +00:00
parent 4f067b1d1c
commit 7ac7c119be
1 changed files with 3 additions and 0 deletions

View File

@ -279,6 +279,7 @@
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
#ifndef _SSIZE_T_DEFINED
#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) || \
defined(__MINGW32__)
#elif defined(_WIN64)
@ -286,6 +287,8 @@
#else
#define ssize_t int
#endif
#define _SSIZE_T_DEFINED
#endif
/* Define to 'int' if socklen_t is not an available 'typedefed' type */
#ifndef HAVE_WS2TCPIP_H