X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1663afc01111eefebd1243035432462ab9a6d2be..19e30148e18cc99296b26503c155e5cef59045f4:/include/wx/chkconf.h diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index b3620c8eb8..1f4d44c86d 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 @@ -32,6 +50,11 @@ # endif #endif /* !defined(wxUSE_DYNLIB_CLASS) */ +/* don't give an error about this one yet, it's not fully implemented */ +#ifndef wxUSE_FSVOLUME +# define wxUSE_FSVOLUME 0 +#endif /* !defined(wxUSE_FSVOLUME) */ + #ifndef wxUSE_DYNAMIC_LOADER # ifdef wxABORT_ON_CONFIG_ERROR # error "wxUSE_DYNAMIC_LOADER must be defined." @@ -750,6 +773,16 @@ # endif #endif /* wxUSE_UNICODE_MSLU */ +#if wxUSE_ODBC && wxUSE_UNICODE +# ifdef wxABORT_ON_CONFIG_ERROR + /* (ODBC classes aren't Unicode-compatible yet) */ +# error "wxUSE_ODBC can't be used with wxUSE_UNICODE" +# else +# undef wxUSE_ODBC +# define wxUSE_ODBC 0 +# endif +#endif /* wxUSE_ODBC */ + /* the rest of the tests is for the GUI settings only */ #if wxUSE_GUI