#include "wx/stdpaths.h"
#ifndef WX_PRECOMP
+ #include "wx/app.h"
#include "wx/wxcrt.h"
#include "wx/utils.h"
#endif //WX_PRECOMP
// 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;