fix bug sf [ 1327872 ] Borland and mslu.cpp problem

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott 2005-12-13 13:43:52 +00:00
parent 98af9c7383
commit 8792cb7340

View File

@ -222,6 +222,17 @@ WXDLLIMPEXP_BASE int wxMSLU__wstat(const wxChar *name, struct _stat *buffer)
return _wstat(name, buffer);
}
#ifdef __BORLANDC__
//here _stati64 is defined as stati64, see msw/mslu.h line 62
#undef _stati64
WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffer)
{
if ( wxUsingUnicowsDll() )
return _stati64((const char*)wxConvFile.cWX2MB(name), (stati64 *) buffer);
else
return _wstati64(name, (stati64 *) buffer);
}
#else
WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffer)
{
if ( wxUsingUnicowsDll() )
@ -229,6 +240,7 @@ WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffe
else
return _wstati64(name, buffer);
}
#endif //__BORLANDC__
#endif // compilers having wopen() &c