// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dirdlgg.h"
#endif
// wxGenericDirDialog
//-----------------------------------------------------------------------------
+IMPLEMENT_DYNAMIC_CLASS(wxGenericDirDialog, wxDialog)
+
static const int ID_DIRCTRL = 1000;
static const int ID_TEXTCTRL = 1001;
static const int ID_OK = 1002;
wxString new_name( _("NewName") );
wxString path( data->m_path );
- if (path.Last() != wxFILE_SEP_PATH)
+ if (!wxEndsWithPathSeparator(path))
path += wxFILE_SEP_PATH;
path += new_name;
if (wxFileExists(path))
new_name += num;
path = data->m_path;
- if (path.Last() != wxFILE_SEP_PATH)
+ if (!wxEndsWithPathSeparator(path))
path += wxFILE_SEP_PATH;
path += new_name;
i++;