From fd9e420b422df54a906019f0a8a1346bbb2dfaac Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 22 Aug 2021 21:41:16 +0200 Subject: [PATCH] Verify that wxUSE_SPELLCHECK is always defined Add sanity check for this symbol, as it's done for all the other wxUSE_XXXs. --- include/wx/chkconf.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index 4fa7561b9c..657baf4c81 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -282,6 +282,14 @@ # endif #endif /* !defined(wxUSE_SECRETSTORE) */ +#ifndef wxUSE_SPELLCHECK +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxUSE_SPELLCHECK must be defined, please read comment near the top of this file." +# else +# define wxUSE_SPELLCHECK 1 +# endif +#endif /* !defined(wxUSE_SPELLCHECK) */ + #ifndef wxUSE_STDPATHS # ifdef wxABORT_ON_CONFIG_ERROR # error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."