X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371a5b4e62eb415107e045588f614fa49e866e78..5a9b59346b4de5c27d2fa595eaaac5b78dda0bcf:/include/wx/msw/ole/access.h diff --git a/include/wx/msw/ole/access.h b/include/wx/msw/ole/access.h index 03ee91a3c6..5eea153e63 100644 --- a/include/wx/msw/ole/access.h +++ b/include/wx/msw/ole/access.h @@ -12,13 +12,11 @@ #ifndef _WX_ACCESS_H_ #define _WX_ACCESS_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface #endif -#if !wxUSE_ACCESSIBILITY - #error "You should #define wxUSE_ACCESSIBILITY to 1 to compile this file!" -#endif //wxUSE_ACCESSIBILITY +#if wxUSE_ACCESSIBILITY // ---------------------------------------------------------------------------- // forward declarations @@ -68,5 +66,7 @@ private: DECLARE_NO_COPY_CLASS(wxAccessible) }; +#endif //wxUSE_ACCESSIBILITY + #endif //_WX_ACCESS_H_