From 6fe4c1b327d7930bd196ed575d2a3429f989aa1b Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 28 Oct 2007 18:50:06 +0000 Subject: [PATCH] Applied patch #1821711 (workaround for Watcom inconsistency wrt Posix functions) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filefn.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 408d809674..7323a95efc 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -322,7 +322,12 @@ enum wxFileKind #ifdef wxHAS_HUGE_FILES #define wxStat wxPOSIX_IDENT(stati64) #else - #define wxStat wxPOSIX_IDENT(stat) + // Unfortunately Watcom is not consistent, so:- + #if defined(__OS2__) && defined(__WATCOMC__) + #define wxStat _stat + #else + #define wxStat wxPOSIX_IDENT(stat) + #endif #endif #endif // wxUSE_UNICODE/!wxUSE_UNICODE