Use wxGetInstallPrefix() instead of wxINSTALL_PREFIX (makes relocatable packages possible)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1072,6 +1072,21 @@ bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
|
||||
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
const wxChar *wxGetInstallPrefix()
|
||||
{
|
||||
wxString prefix;
|
||||
|
||||
if ( wxGetEnv(wxT("WX_PREFIX"), &prefix) )
|
||||
return prefix.c_str();
|
||||
|
||||
#ifdef wxINSTALL_PREFIX
|
||||
return wxT(wxINSTALL_PREFIX);
|
||||
#else
|
||||
return wxT("");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// network and user id functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user