Change #ifdef __UNIX__ to #if defined(__UNIX__) && !defined(__APPLE__) as

__UNIX__ is triggered on OS X as well which breaks things when setting
SetInstallPrefix.

Originally committed to SVN as r2608.
This commit is contained in:
Amar Takhar 2009-01-01 14:01:45 +00:00
parent 31be1e68a2
commit 5523314bb2
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ StandardPaths *StandardPaths::GetInstance() {
StandardPaths::StandardPaths() {
wxStandardPathsBase &paths = wxStandardPaths::Get();
#ifdef __UNIX__
#if defined(__UNIX__) && !defined(__APPLE__)
// Relocation support, this is required to set the prefix to all
// wx StandardPaths.
static_cast<wxStandardPaths&>(paths).SetInstallPrefix(wxT(INSTALL_PREFIX));