-WXDLLEXPORT int wxMSLU__wopen(const wxChar *name, int flags, int mode);
-WXDLLEXPORT int wxMSLU__waccess(const wxChar *name, int mode);
-WXDLLEXPORT int wxMSLU__wmkdir(const wxChar *name);
-WXDLLEXPORT int wxMSLU__wrmdir(const wxChar *name);
-WXDLLEXPORT int wxMSLU__wstat(const wxChar *name, struct _stat *buffer);
+
+#ifdef __BORLANDC__
+ // BCC has _stati64() function but struct stati64
+ #define _stati64 stati64
+#endif
+
+WXDLLIMPEXP_BASE int wxMSLU__wopen(const wxChar *name, int flags, int mode);
+WXDLLIMPEXP_BASE int wxMSLU__waccess(const wxChar *name, int mode);
+WXDLLIMPEXP_BASE int wxMSLU__wmkdir(const wxChar *name);
+WXDLLIMPEXP_BASE int wxMSLU__wrmdir(const wxChar *name);
+WXDLLIMPEXP_BASE int wxMSLU__wstat(const wxChar *name, struct _stat *buffer);
+WXDLLIMPEXP_BASE int wxMSLU__wstati64(const wxChar *name, struct _stati64 *buffer);