diff --git a/pgadmin/pgAdmin3.cpp b/pgadmin/pgAdmin3.cpp
index 7696904..85037f2 100644
--- a/pgadmin/pgAdmin3.cpp
+++ b/pgadmin/pgAdmin3.cpp
@@ -1347,8 +1347,8 @@ wxString pgAdmin3::LocatePath(const wxString &pathToFind, const bool isFile)
 	// not to the mac variants. Therefore, we request wxStandardPathsCF
 	// directly.
 	wxStandardPathsCF stdPaths;
+#endif
 	dataDir = stdPaths.GetDataDir();
-#endif
 
 #else // other *ixes
 
