From 968956aa6e30195516f8d645b7b7b7b622948d7b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 4 Nov 2006 03:14:48 +0000 Subject: [PATCH] don't compile in wxCheckWin32Permission() when it's not used (as in cygwin builds where both __UNIX__ and __WINDOWS__ are defined) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index d690e66d9d..8a8b921abf 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1779,7 +1779,7 @@ int WXDLLEXPORT wxParseCommonDialogsFilter(const wxString& filterStr, return filters.GetCount(); } -#if defined( __WINDOWS__ ) +#if defined(__WINDOWS__) && !(defined(__UNIX__) || defined(__OS2__)) static bool wxCheckWin32Permission(const wxString& path, DWORD access) { // quoting the MSDN: "To obtain a handle to a directory, call the -- 2.50.0