From: Stefan Neis Date: Sun, 28 Oct 2007 18:52:46 +0000 (+0000) Subject: Applied patch #1821711 (workaround for Watcom inconsistency wrt Posix functions) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1044b90c1b6dabee7327a9a2898725af9cc018b8 Applied patch #1821711 (workaround for Watcom inconsistency wrt Posix functions) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 9be5072ab9..ba57e38001 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -326,7 +326,12 @@ enum wxFileKind #ifdef wxHAS_HUGE_FILES #define wxCRT_Stat wxPOSIX_IDENT(stati64) #else - #define wxCRT_Stat wxPOSIX_IDENT(stat) + // Unfortunately Watcom is not consistent, so:- + #if defined(__OS2__) && defined(__WATCOMC__) + #define wxCRT_Stat _stat + #else + #define wxCRT_Stat wxPOSIX_IDENT(stat) + #endif #endif #endif // wxUSE_UNICODE/!wxUSE_UNICODE