#include "wx/filefn.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');