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:
@@ -194,6 +194,7 @@ protected:
|
||||
#elif defined(__UNIX__)
|
||||
#include "wx/unix/stdpaths.h"
|
||||
#define wxHAS_NATIVE_STDPATHS
|
||||
#define wxHAS_STDPATHS_INSTALL_PREFIX
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -205,6 +206,7 @@ protected:
|
||||
// wxUSE_STDPATHS=0, so that our code can still use wxStandardPaths.
|
||||
|
||||
#ifndef wxHAS_NATIVE_STDPATHS
|
||||
#define wxHAS_STDPATHS_INSTALL_PREFIX
|
||||
class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user