X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9597d39a2e3105f36db089936fc39375a83c1520..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/gtk/chkconf.h diff --git a/include/wx/gtk/chkconf.h b/include/wx/gtk/chkconf.h index afd727fa3f..9897ebd352 100644 --- a/include/wx/gtk/chkconf.h +++ b/include/wx/gtk/chkconf.h @@ -81,3 +81,14 @@ #endif #endif /* __WINDOWS__ */ + +#ifdef __WXGTK3__ + #if !wxUSE_GRAPHICS_CONTEXT + #ifdef wxABORT_ON_CONFIG_ERROR + #error "GTK+ 3 support requires wxGraphicsContext" + #else + #undef wxUSE_GRAPHICS_CONTEXT + #define wxUSE_GRAPHICS_CONTEXT 1 + #endif + #endif +#endif