X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c50a4038e3c3a13e3d493c432017d371d4916ce6..ae999b11ec671b5a12a30f24c0aa6b36978b3fd6:/include/wx/debug.h?ds=sidebyside diff --git a/include/wx/debug.h b/include/wx/debug.h index f0ca48d9fc..c2fc985ec2 100644 --- a/include/wx/debug.h +++ b/include/wx/debug.h @@ -127,7 +127,7 @@ #ifdef __cplusplus /* Use of wxFalse instead of false suppresses compiler warnings about testing */ /* constant expression */ - WXDLLIMPEXP_DATA_BASE(extern const bool) wxFalse; + extern WXDLLIMPEXP_DATA_BASE(const bool) wxFalse; #endif #define wxAssertFailure wxFalse @@ -198,7 +198,7 @@ It may be used both within a function and in the global scope. */ -#ifdef __WATCOMC__ +#if defined(__WATCOMC__) && defined(__cplusplus) /* avoid "unused symbol" warning */ #define wxCOMPILE_TIME_ASSERT(expr, msg) \ class wxMAKE_UNIQUE_ASSERT_NAME { \ @@ -240,7 +240,8 @@ it always returns false in other cases. */ #ifdef __cplusplus - #if defined(__WXMAC__) || defined(__WXMSW__) + /* ABX: check __WIN32__ instead of __WXMSW__ for the same MSWBase in any Win32 port */ + #if defined(__WXMAC__) || defined(__WIN32__) extern bool WXDLLIMPEXP_BASE wxIsDebuggerRunning(); #else /* !Mac */ inline bool wxIsDebuggerRunning() { return false; } @@ -248,4 +249,3 @@ #endif /* __cplusplus */ #endif /* _WX_DEBUG_H_ */ -