From 194b22676876a5d30bdb605932a429b2fbabda4a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 21 Oct 2006 14:45:40 +0000 Subject: [PATCH] also define wxLstat for non-Unix platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filefn.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 60853f0bce..3a3cc99a43 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -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 -- 2.45.2