X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adf9e09990c79a3645eaa1f69b44d852c11a72f0..ab5ebf521fca1ddff1de556db7c53b25b501cdeb:/src/msw/caret.cpp diff --git a/src/msw/caret.cpp b/src/msw/caret.cpp index dac2949001..a043aa174a 100644 --- a/src/msw/caret.cpp +++ b/src/msw/caret.cpp @@ -17,7 +17,7 @@ // headers // --------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "caret.h" #endif @@ -43,15 +43,9 @@ // macros // --------------------------------------------------------------------------- -// under Win16 the caret APIs are void but under Win32 they may return an -// error code which we want to check - this macro does just this -#ifdef __WIN16__ - #define CALL_CARET_API(api, args) api args -#else // Win32 - #define CALL_CARET_API(api, args) \ +#define CALL_CARET_API(api, args) \ if ( !api args ) \ wxLogLastError(_T(#api)) -#endif // Win16/32 // =========================================================================== // implementation