From: Vadim Zeitlin Date: Sun, 8 Feb 2004 15:06:29 +0000 (+0000) Subject: ugly attempt to fix compilation for BCB 6 (bug 819700) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f2e5c082854852e54dbec21ec0437d5473596970 ugly attempt to fix compilation for BCB 6 (bug 819700) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/memory.h b/include/wx/memory.h index 6b1bed37cd..8ae2be6e81 100644 --- a/include/wx/memory.h +++ b/include/wx/memory.h @@ -308,8 +308,15 @@ void WXDLLIMPEXP_BASE wxTraceLevel(int level, const wxChar *fmt ...) ATTRIBUTE_P #else // else part for the #if __WXDEBUG__ -inline void wxTrace(const wxChar *WXUNUSED(fmt)) {} -inline void wxTraceLevel(int WXUNUSED(level), const wxChar *WXUNUSED(fmt)) {} +// Borland C++ Builder 6 seems to have troubles with inline functions (see bug +// 819700) +#if 0 + inline void wxTrace(const wxChar *WXUNUSED(fmt)) {} + inline void wxTraceLevel(int WXUNUSED(level), const wxChar *WXUNUSED(fmt)) {} +#else + #define wxTrace(fmt) + #define wxTraceLevel(l, fmt) +#endif #define WXTRACE TRUE ? (void)0 : wxTrace #define WXTRACELEVEL TRUE ? (void)0 : wxTraceLevel