#ifdef __BORLANDC__
#pragma hdrstop
+#include <dir.h>
#endif
#ifndef WX_PRECOMP
#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);
}