From d28e0b069f2ffe49bf10ea87ba8d085f823e9c3e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Nov 2006 21:38:31 +0000 Subject: [PATCH] don't use scope resolution operator for Borland in wxPOSIX_IDENT() (part of the fix for bug 1592939) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/filefn.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 4f539ab176..3c6a3feb33 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -197,7 +197,11 @@ enum wxFileKind // to avoid using them as they're not present in earlier versions and // always using the native functions spelling is easier than testing for // the versions - #if defined(__BORLANDC__) || defined(__DMC__) || defined(__WATCOMC__) + #if defined(__BORLANDC__) + // Borland doesn't like "struct ::stat" so don't use the scope + // resolution operator with it + #define wxPOSIX_IDENT(func) func + #elif defined(__DMC__) || defined(__WATCOMC__) #define wxPOSIX_IDENT(func) ::func #else // by default assume MSVC-compatible names #define wxPOSIX_IDENT(func) _ ## func -- 2.45.2