blind fix for Borland ANSI build: define wxStructStat specially for this compiler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -341,7 +341,17 @@ enum wxFileKind
|
|||||||
|
|
||||||
// Types: Notice that Watcom is the only compiler to have a wide char
|
// Types: Notice that Watcom is the only compiler to have a wide char
|
||||||
// version of struct stat as well as a wide char stat function variant.
|
// version of struct stat as well as a wide char stat function variant.
|
||||||
// This was droped since OW 1.4 "for consistency across platforms".
|
// This was dropped since OW 1.4 "for consistency across platforms".
|
||||||
|
//
|
||||||
|
// Borland is also special in that it uses _stat with Unicode functions
|
||||||
|
// (for MSVC compatibility?) but stat with ANSI ones
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
#define wxStructStat struct _stat
|
||||||
|
#else
|
||||||
|
#define wxStructStat struct stat
|
||||||
|
#endif
|
||||||
|
#else // !__BORLANDC__
|
||||||
#ifdef wxHAS_HUGE_FILES
|
#ifdef wxHAS_HUGE_FILES
|
||||||
#if wxUSE_UNICODE && wxONLY_WATCOM_EARLIER_THAN(1,4)
|
#if wxUSE_UNICODE && wxONLY_WATCOM_EARLIER_THAN(1,4)
|
||||||
#define wxStructStat struct _wstati64
|
#define wxStructStat struct _wstati64
|
||||||
@@ -355,6 +365,7 @@ enum wxFileKind
|
|||||||
#define wxStructStat struct _stat
|
#define wxStructStat struct _stat
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif // __BORLANDC__/!__BORLANDC__
|
||||||
|
|
||||||
// constants (unless already defined by the user code)
|
// constants (unless already defined by the user code)
|
||||||
#ifdef wxHAS_UNDERSCORES_IN_POSIX_IDENTS
|
#ifdef wxHAS_UNDERSCORES_IN_POSIX_IDENTS
|
||||||
|
Reference in New Issue
Block a user