#ifdef __WXMSW__
#include <windows.h>
+#include "wx/msw/winundef.h"
#endif
// ----------------------------------------------------------------------------
{
wxString newfile;
newfile << WXEXTHELP_SEPARATOR << wxGetLocale()->GetName();
- if(wxDirExists(newfile))
+ if(wxPathExists(newfile))
file = newfile;
else
{
const wxChar *cptr = wxGetLocale()->GetName().c_str();
while(*cptr && *cptr != wxT('_'))
newfile << *(cptr++);
- if(wxDirExists(newfile))
+ if(wxPathExists(newfile))
file = newfile;
}
}
#endif
- if(! wxDirExists(file))
+ if(! wxPathExists(file))
return false;
mapFile << file << WXEXTHELP_SEPARATOR << WXEXTHELP_MAPFILE;