From: Chris Elliott Date: Tue, 13 Dec 2005 13:43:52 +0000 (+0000) Subject: fix bug sf [ 1327872 ] Borland and mslu.cpp problem X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8792cb7340578959c3d687fad26d89864873cf7c?ds=inline 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 --- diff --git a/src/msw/mslu.cpp b/src/msw/mslu.cpp index b34c033f12..a484b58656 100644 --- a/src/msw/mslu.cpp +++ b/src/msw/mslu.cpp @@ -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