From: Vadim Zeitlin Date: Sun, 5 Apr 2009 12:16:58 +0000 (+0000) Subject: define HAVE_SSIZE_T if we define ssize_t ourselves to prevent redefinitions in other... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/24a5629aed12df4294b278343de3f9a5e37e15df define HAVE_SSIZE_T if we define ssize_t ourselves to prevent redefinitions in other libraries headers (closes #10674) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index f4c9bea0c7..f815b86986 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -1081,6 +1081,9 @@ typedef wxUint32 wxDword; #else #error "error defining ssize_t, size_t is not 4 or 8 bytes" #endif + + /* prevent ssize_t redefinitions in other libraries */ + #define HAVE_SSIZE_T #endif // we can't rely on Windows _W64 being defined as windows.h may not be included