define HAVE_SSIZE_T if _SSIZE_T_DEFINED is defined for mingw32 (#9921)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-08-30 12:49:13 +00:00
parent 792255cc6d
commit d12fd3ebcf

View File

@ -1119,19 +1119,21 @@ typedef wxUint32 wxDword;
#endif
/* Make sure ssize_t is defined (a signed type the same size as size_t) */
/* HAVE_SSIZE_T should be defined for compiliers that already have it */
/* Make sure ssize_t is defined (a signed type the same size as size_t). */
/* (HAVE_SSIZE_T is not already defined by configure) */
#ifndef HAVE_SSIZE_T
#ifdef __MINGW32__
#if defined(_SSIZE_T_) && !defined(HAVE_SSIZE_T)
#if defined(_SSIZE_T_) || defined(_SSIZE_T_DEFINED)
#define HAVE_SSIZE_T
#endif
#endif
#if defined(__PALMOS__) && !defined(HAVE_SSIZE_T)
#define HAVE_SSIZE_T
#endif
#if wxCHECK_WATCOM_VERSION(1,4)
#elif defined(__PALMOS__)
#define HAVE_SSIZE_T
#elif wxCHECK_WATCOM_VERSION(1,4)
#define HAVE_SSIZE_T
#endif
#endif /* !HAVE_SSIZE_T */
/* If we really don't have ssize_t, provide our own version. */
#ifdef HAVE_SSIZE_T
#ifdef __UNIX__
#include <sys/types.h>