]> git.saurik.com Git - wxWidgets.git/commitdiff
MinGW fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 12 Nov 2004 14:26:31 +0000 (14:26 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 12 Nov 2004 14:26:31 +0000 (14:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index a5d6fecb4e8f4034f9d411e462d5b7ab92d44a37..d70efa4cb8d45b1e39e78a79b219ea269acf179a 100644 (file)
@@ -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 <sys/types.h>
+    #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;