]> git.saurik.com Git - wxWidgets.git/commitdiff
fix bug sf [ 1327872 ] Borland and mslu.cpp problem
authorChris Elliott <biol75@york.ac.uk>
Tue, 13 Dec 2005 13:43:52 +0000 (13:43 +0000)
committerChris Elliott <biol75@york.ac.uk>
Tue, 13 Dec 2005 13:43:52 +0000 (13:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/mslu.cpp

index b34c033f121d9be62641cb47ef50f2ba85f24c86..a484b586560f26d29979dc410812579e3f2fe1f4 100644 (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