]> git.saurik.com Git - wxWidgets.git/commitdiff
Extended #1560785 (wxFileName::IsReadable/Writable/Executable) for OS/2.
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 22 Oct 2006 21:17:15 +0000 (21:17 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 22 Oct 2006 21:17:15 +0000 (21:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index 73c0a0c03614cb3a6c759037f781fde13712701e..bc6c67ae793301a437d49769b912db763bd62385 100644 (file)
@@ -1803,7 +1803,7 @@ static bool wxCheckWin32Permission(const wxString& path, DWORD access)
 
 bool wxIsWritable(const wxString &path)
 {
-#if defined( __UNIX__ )
+#if defined( __UNIX__ ) || defined(__OS2__)
     // access() will take in count also symbolic links
     return access(wxConvFile.cWX2MB(path), W_OK) == 0;
 #elif defined( __WINDOWS__ )
@@ -1817,7 +1817,7 @@ bool wxIsWritable(const wxString &path)
 
 bool wxIsReadable(const wxString &path)
 {
-#if defined( __UNIX__ )
+#if defined( __UNIX__ ) || defined(__OS2__)
     // access() will take in count also symbolic links
     return access(wxConvFile.cWX2MB(path), R_OK) == 0;
 #elif defined( __WINDOWS__ )
@@ -1831,7 +1831,7 @@ bool wxIsReadable(const wxString &path)
 
 bool wxIsExecutable(const wxString &path)
 {
-#if defined( __UNIX__ )
+#if defined( __UNIX__ ) || defined(__OS2__)
     // access() will take in count also symbolic links
     return access(wxConvFile.cWX2MB(path), X_OK) == 0;
 #elif defined( __WINDOWS__ )