Fix GetInstallPrefix availability check

Add wxHAS_STDPATHS_INSTALL_PREFIX to make checking for
wxStandardPaths::GetInstallPrefix()'s availability simpler, as the
condition under which it is compiled is nontrivial.

Fixes compilation after 2c24ee9216 on
Cygwin, which is a UNIX, but its wxStandardPaths implementation is a
Windows one.
This commit is contained in:
Václav Slavík
2016-12-11 15:18:24 +01:00
parent c2b9f650e4
commit 13862ad8e6
2 changed files with 3 additions and 1 deletions

View File

@@ -1803,7 +1803,7 @@ wxArrayString GetSearchPrefixes()
if ( paths.Index(stdp) == wxNOT_FOUND )
paths.Add(stdp);
#if defined(__UNIX__) && !defined(__WXOSX_COCOA__) && !defined(__WXOSX_IPHONE__) && !defined(__DARWIN__)
#ifdef wxHAS_STDPATHS_INSTALL_PREFIX
stdp = wxStandardPaths::Get().GetInstallPrefix() + "/share/locale";
if ( paths.Index(stdp) == wxNOT_FOUND )
paths.Add(stdp);