diff --git a/scripts/lv_conf_checker.py b/scripts/lv_conf_checker.py index d7cdaa2a44..f83607958e 100755 --- a/scripts/lv_conf_checker.py +++ b/scripts/lv_conf_checker.py @@ -42,6 +42,11 @@ fout.write( # define LV_CONF_INCLUDE_SIMPLE # endif # endif +# if __has_include("lvgl.h") +# ifndef LV_LVGL_H_INCLUDE_SIMPLE +# define LV_LVGL_H_INCLUDE_SIMPLE +# endif +# endif #endif /*If lv_conf.h is not skipped include it*/ diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index b06911ff60..5632b41e6d 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -25,6 +25,11 @@ # define LV_CONF_INCLUDE_SIMPLE # endif # endif +# if __has_include("lvgl.h") +# ifndef LV_LVGL_H_INCLUDE_SIMPLE +# define LV_LVGL_H_INCLUDE_SIMPLE +# endif +# endif #endif /*If lv_conf.h is not skipped include it*/