#ifdef __BORLANDC__
#pragma hdrstop
+#include <dir.h>
#endif
#ifndef WX_PRECOMP
#include <io.h>
#include <sys/stat.h>
-#ifdef __GNUWIN32__
- #include <wchar.h>
-#endif
-
#ifdef __VISUALC__
#include <direct.h>
#endif
if ( wxUsingUnicowsDll() )
{
- return DrawStateA((HDC)dc, (HBRUSH)br, (DRAWSTATEPROC)outputFunc,
+ return DrawStateA((HDC)dc, (HBRUSH)br, (DRAWSTATEPROC)outputFunc,
(LPARAM)(const char*)
wxConvLocal.cWX2MB((const wxChar*)lData),
wData, x, y, cx, cy, flags);
// Missing libc file manipulation functions in Win9x
//------------------------------------------------------------------------
+#if wxUSE_BASE
+
WXDLLEXPORT int wxMSLU__trename(const wxChar *oldname, const wxChar *newname)
{
if ( wxUsingUnicowsDll() )
#if defined( __VISUALC__ ) \
|| ( defined(__MINGW32__) && wxCHECK_W32API_VERSION( 0, 5 ) ) \
- || ( defined(__MWERKS__) && defined(__WXMSW__) )
+ || ( defined(__MWERKS__) && defined(__WXMSW__) ) \
+ || ( defined(__BORLANDC__) && (__BORLANDC__ > 0x460) )
WXDLLEXPORT int wxMSLU__wopen(const wxChar *name, int flags, int mode)
{
if ( wxUsingUnicowsDll() )
+#ifdef __BORLANDC__
+ return open(wxConvFile.cWX2MB(name), flags, mode);
+#else
return _open(wxConvFile.cWX2MB(name), flags, mode);
+#endif
else
return _wopen(name, flags, mode);
}
return _wstat(name, buffer);
}
-#endif
+#endif // compilers having wopen() &c
+
+#endif // wxUSE_BASE
#endif // wxUSE_UNICODE_MSLU