diff --git a/src/widgets/msgbox/lv_msgbox.c b/src/widgets/msgbox/lv_msgbox.c index 1fd6f9fded..1713fb9a54 100644 --- a/src/widgets/msgbox/lv_msgbox.c +++ b/src/widgets/msgbox/lv_msgbox.c @@ -12,13 +12,16 @@ #if LV_USE_MSGBOX #include "../label/lv_label.h" -#include "../button/lv_button.h" #include "../image/lv_image.h" #include "../../misc/lv_assert.h" #include "../../display/lv_display.h" #include "../../layouts/flex/lv_flex.h" #include "../../stdlib/lv_string.h" +#if LV_USE_LABEL == 0 + #error "lv_mbox: lv_label is required. Enable it in lv_conf.h (LV_USE_LABEL 1) " +#endif + /********************* * DEFINES *********************/ diff --git a/src/widgets/msgbox/lv_msgbox.h b/src/widgets/msgbox/lv_msgbox.h index 5605b80281..683198492c 100644 --- a/src/widgets/msgbox/lv_msgbox.h +++ b/src/widgets/msgbox/lv_msgbox.h @@ -17,15 +17,6 @@ extern "C" { #if LV_USE_MSGBOX -/*Testing of dependencies*/ -#if LV_USE_BUTTONMATRIX == 0 -#error "lv_mbox: lv_buttonmatrix is required. Enable it in lv_conf.h (LV_USE_BUTTONMATRIX 1) " -#endif - -#if LV_USE_LABEL == 0 -#error "lv_mbox: lv_label is required. Enable it in lv_conf.h (LV_USE_LABEL 1) " -#endif - /********************* * DEFINES *********************/