}
// ----------------------------------------------------------------------------
-// miscellaneous global functions (TOFIX!)
+// miscellaneous global functions
// ----------------------------------------------------------------------------
+#if WXWIN_COMPATIBILITY_2_8
static inline wxChar* MYcopystring(const wxString& s)
{
wxChar* copy = new wxChar[s.length() + 1];
CharType* copy = new CharType[wxStrlen(s) + 1];
return wxStrcpy(copy, s);
}
+#endif
bool
wxChar *wxCopyAbsolutePath(const wxString& filename)
{
if (filename.empty())
- return (wxChar *) NULL;
+ return NULL;
if (! wxIsAbsolutePath(wxExpandPath(wxFileFunctionsBuffer, filename)))
{
static wxChar dest[_MAXPATHLEN];
if (filename.empty())
- return (wxChar *) NULL;
+ return NULL;
wxStrcpy (dest, filename);
#ifdef __WXMSW__
}
#endif
}
- return (wxChar *) NULL;
+ return NULL;
}
// Return just the directory, or NULL if no directory
{
sz -= 3;
rc = ::DosQueryCurrentDir( 0 // current drive
- ,cbuf + 3
+ ,(PBYTE)cbuf + 3
,(PULONG)&sz
);
cbuf[0] = char('A' + (ulDriveNum - 1));