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:
@@ -222,6 +222,17 @@ WXDLLIMPEXP_BASE int wxMSLU__wstat(const wxChar *name, struct _stat *buffer)
|
|||||||
return _wstat(name, 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)
|
WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffer)
|
||||||
{
|
{
|
||||||
if ( wxUsingUnicowsDll() )
|
if ( wxUsingUnicowsDll() )
|
||||||
@@ -229,6 +240,7 @@ WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffe
|
|||||||
else
|
else
|
||||||
return _wstati64(name, buffer);
|
return _wstati64(name, buffer);
|
||||||
}
|
}
|
||||||
|
#endif //__BORLANDC__
|
||||||
|
|
||||||
#endif // compilers having wopen() &c
|
#endif // compilers having wopen() &c
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user