From 535c3d506f38e01156558ae80e55b19937969e4c Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 1 Oct 2020 13:51:33 +0200 Subject: [PATCH] Allow inclusion of local lv_conf_internal.h (#1822) * Allow inclusion of local lv_conf_internal.h A wrapper library cna contain an lv_conf.h file and it would be automatically picked up by the buildsystem * Guard __has_include and simplify code * Make number sign indentation consistent Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com> --- src/lv_conf_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index ea41b0720..064917cad 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -10,6 +10,12 @@ #include +#if defined __has_include +# if __has_include("lv_conf.h") +# define LV_CONF_INCLUDE_SIMPLE +# endif +#endif + /*If lv_conf.h is not skipped include it*/ #if !defined(LV_CONF_SKIP) && !defined(CONFIG_LV_CONF_SKIP) # if defined(LV_CONF_PATH) /*If there is a path defined for lv_conf.h use it*/