#include "wx/config.h" // for wxExpandEnvVars
#include "wx/utils.h"
#include "wx/file.h"
-
-#if wxUSE_DYNAMIC_LOADER || wxUSE_DYNLIB_CLASS
-#include "wx/dynlib.h"
-#endif
+//#include "wx/dynlib.h" // see GetLongPath below, code disabled.
// For GetShort/LongPathName
#ifdef __WIN32__
#include <unistd.h>
#endif
+#ifdef __DJGPP__
+#include <unistd.h>
+#endif
+
#ifdef __MWERKS__
#include <stat.h>
#include <unistd.h>
const wxString& name,
const wxString& ext,
wxPathFormat format )
+{
+ SetPath( path, format );
+
+ m_volume = volume;
+ m_ext = ext;
+ m_name = name;
+}
+
+void wxFileName::SetPath( const wxString &path, wxPathFormat format )
{
wxPathFormat my_format = GetFormat( format );
wxString my_path = path;
}
}
}
-
- m_volume = volume;
- m_ext = ext;
- m_name = name;
+ else
+ {
+ m_relative = TRUE;
+ }
}
void wxFileName::Assign(const wxString& fullpath,