From: Włodzimierz Skiba Date: Fri, 12 Nov 2004 14:26:31 +0000 (+0000) Subject: MinGW fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/954ec2763ae31bdf572ce77bc3054253298f46bf MinGW fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index a5d6fecb4e..d70efa4cb8 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -888,6 +888,12 @@ inline void *wxUIntToPtr(wxUIntPtr p) /* 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 */ +#ifdef __MINGW32__ + #include + #if defined(_SSIZE_T_) && !defined(HAVE_SSIZE_T) + #define HAVE_SSIZE_T + #endif +#endif #ifndef HAVE_SSIZE_T #if SIZEOF_SIZE_T == 4 typedef wxInt32 ssize_t;