X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/306a5d95154602e34bd752aa18859931018d26d5..bc0f253462cfaf5ca6617ba9fad9987014a66e4e:/src/unix/stdpaths.cpp diff --git a/src/unix/stdpaths.cpp b/src/unix/stdpaths.cpp index c127fc3d66..64ac00cc22 100644 --- a/src/unix/stdpaths.cpp +++ b/src/unix/stdpaths.cpp @@ -29,6 +29,7 @@ #include "wx/stdpaths.h" #ifndef WX_PRECOMP + #include "wx/app.h" #include "wx/wxcrt.h" #include "wx/utils.h" #endif //WX_PRECOMP @@ -196,7 +197,11 @@ wxString wxStandardPaths::GetDataDir() const // practice for running well-written (and so using wxStandardPaths to find // their files) wx applications without installing them static const wxString - envOverride(getenv("WX_" + wxTheApp->GetAppName().Upper() + "_DATA_DIR")); + envOverride( + getenv( + ("WX_" + wxTheApp->GetAppName().Upper() + "_DATA_DIR").c_str() + ) + ); if ( !envOverride.empty() ) return envOverride;