From b5adf1eb375fabc7956624e6e990a38cf1b1bec6 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 22 Aug 2011 15:52:06 +0100 Subject: [PATCH] Skip compiling the FileOps::toUnixPermissions() helper method on Win32 --- src/FileOps.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FileOps.cpp b/src/FileOps.cpp index 595db5e..c318af9 100644 --- a/src/FileOps.cpp +++ b/src/FileOps.cpp @@ -272,6 +272,7 @@ void addFlag(InFlags inFlags, int testBit, OutFlags& outFlags, int setBit) } } +#ifdef PLATFORM_UNIX int FileOps::toUnixPermissions(int qtPermissions) { mode_t result = 0; @@ -286,4 +287,5 @@ int FileOps::toUnixPermissions(int qtPermissions) addFlag(qtPermissions,ExecOther,result,S_IXOTH); return result; } +#endif