]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch #1821711 (workaround for Watcom inconsistency wrt Posix functions)
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 28 Oct 2007 18:52:46 +0000 (18:52 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 28 Oct 2007 18:52:46 +0000 (18:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filefn.h

index 9be5072ab905380cdaf38d9491319a44ad113c2a..ba57e3800161481fc842ffcebefe1b4e37981260 100644 (file)
@@ -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