]> git.saurik.com Git - wxWidgets.git/commitdiff
also define wxLstat for non-Unix platforms
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 21 Oct 2006 14:45:40 +0000 (14:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 21 Oct 2006 14:45:40 +0000 (14:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filefn.h

index 60853f0bce7f1e7132ee5899daa043a828a2d3ab..3a3cc99a4377d7f29a28af15a07f2f0d64c6be7a 100644 (file)
@@ -351,8 +351,16 @@ enum wxFileKind
         #define   wxLstat      lstat
         #define   wxAccess     access
     #endif
+
+    #define wxHAVE_NATIVE_LSTAT
 #endif // platforms
 
+// if the platform doesn't have symlinks, define wxLstat to be the same as
+// wxStat to avoid #ifdefs in the code using it
+#ifndef wxHAVE_NATIVE_LSTAT
+    #define wxLstat wxStat
+#endif
+
 #if defined(__VISAGECPP__) && __IBMCPP__ >= 400
 //
 // VisualAge C++ V4.0 cannot have any external linkage const decs