1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Support LV_CONF_INCLUDE_SIMPLE for backwards compatibility

This commit is contained in:
Themba Dube 2019-12-26 11:56:06 -05:00
parent 36ba091af2
commit d9ad45313c

View File

@ -10,12 +10,14 @@
#include <stdint.h>
#ifdef LV_CONF_PATH
#if defined(LV_CONF_PATH)
#define __LV_TO_STR_AUX(x) #x
#define __LV_TO_STR(x) __LV_TO_STR_AUX(x)
#include __LV_TO_STR(LV_CONF_PATH)
#undef __LV_TO_STR_AUX
#undef __LV_TO_STR
#elif defined(LV_CONF_INCLUDE_SIMPLE)
#include "lv_conf.h"
#else
#include "../../lv_conf.h"
#endif