#include "wx/intl.h"
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/utils.h"
#endif //WX_PRECOMP
#include "wx/filefn.h"
-#include "wx/utils.h"
#include "wx/filename.h" // for SplitPath()
-#include "wx/apptrait.h"
+#include "wx/platinfo.h"
#include "wx/arrimpl.cpp"
wxString suffix;
if ( cat == wxDL_PLUGIN_GUI )
{
- wxAppTraits *traits = wxAppConsole::GetInstance() ?
- wxAppConsole::GetInstance()->GetTraits() : NULL;
- wxCHECK_MSG( traits, wxEmptyString,
- _("can't query for GUI plugins name in console applications") );
- suffix = traits->GetToolkitInfo().shortName;
+ suffix = wxPlatformInfo::Get().GetPortIdShortName();
}
#if wxUSE_UNICODE
suffix << _T('u');