diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index b3620c8eb8..512a498a38 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -19,6 +19,24 @@ */ #define wxABORT_ON_CONFIG_ERROR +/* + global features + */ + +/* GUI build by default */ +#if !defined(wxUSE_GUI) +# define wxUSE_GUI 1 +#endif /* !defined(wxUSE_GUI) */ + +/* wxBase doesn't need compatibility settings as it's a new port */ +#if !wxUSE_GUI +# undef WXWIN_COMPATIBILITY +# undef WXWIN_COMPATIBILITY_2 +# undef WXWIN_COMPATIBILITY_2_2 +# define WXWIN_COMPATIBILITY 0 +# define WXWIN_COMPATIBILITY_2 0 +# define WXWIN_COMPATIBILITY_2_2 0 +#endif /* !wxUSE_GUI */ /* tests for non GUI features