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

fix(conf): work around GCC bug (#3082)

Fixes #3078
This commit is contained in:
embeddedt 2022-02-11 09:25:44 -05:00 committed by GitHub
parent e7736f2c32
commit c6b34bc85b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -57,6 +57,11 @@ fout.write(
#else #else
#include "../../lv_conf.h" /*Else assume lv_conf.h is next to the lvgl folder*/ #include "../../lv_conf.h" /*Else assume lv_conf.h is next to the lvgl folder*/
#endif #endif
#if !defined(LV_CONF_H) && !defined(LV_CONF_SUPPRESS_DEFINE_CHECK)
/* #include will sometimes silently fail when __has_include is used */
/* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80753 */
#pragma message("Possible failure to include lv_conf.h, please read the comment in this file if you get errors")
#endif
#endif #endif
#ifdef CONFIG_LV_COLOR_DEPTH #ifdef CONFIG_LV_COLOR_DEPTH

View File

@ -40,6 +40,11 @@
#else #else
#include "../../lv_conf.h" /*Else assume lv_conf.h is next to the lvgl folder*/ #include "../../lv_conf.h" /*Else assume lv_conf.h is next to the lvgl folder*/
#endif #endif
#if !defined(LV_CONF_H) && !defined(LV_CONF_SUPPRESS_DEFINE_CHECK)
/* #include will sometimes silently fail when __has_include is used */
/* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80753 */
#pragma message("Possible failure to include lv_conf.h, please read the comment in this file if you get errors")
#endif
#endif #endif
#ifdef CONFIG_LV_COLOR_DEPTH #ifdef CONFIG_LV_COLOR_DEPTH

View File

@ -6,6 +6,8 @@
#ifndef LV_TEST_CONF_H #ifndef LV_TEST_CONF_H
#define LV_TEST_CONF_H #define LV_TEST_CONF_H
#define LV_CONF_SUPPRESS_DEFINE_CHECK 1
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif