X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa06b433fc7ed4137d7fe5195cbbec88a10291af..789f8e6ad40488d2dd5f5f4d87e195d0f1e23422:/src/msw/caret.cpp diff --git a/src/msw/caret.cpp b/src/msw/caret.cpp index ee761165a1..63fc43ac08 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 @@ -35,6 +35,8 @@ #include "wx/caret.h" +#if wxUSE_CARET + #include "wx/msw/private.h" // --------------------------------------------------------------------------- @@ -192,3 +194,5 @@ void wxCaret::DoSize() OnSetFocus(); } } + +#endif