From 41cc350d2b434f90f283ddd4588e9916c540860a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Costa?= Date: Fri, 8 May 2026 12:22:09 +0200 Subject: [PATCH] fix(nuttx): guard declarations inside LV_USE_NUTTX (#10078) --- src/drivers/nuttx/lv_nuttx_cache.h | 6 ++++++ src/drivers/nuttx/lv_nuttx_image_cache.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/drivers/nuttx/lv_nuttx_cache.h b/src/drivers/nuttx/lv_nuttx_cache.h index 74be6d3af5..80bf7ef937 100644 --- a/src/drivers/nuttx/lv_nuttx_cache.h +++ b/src/drivers/nuttx/lv_nuttx_cache.h @@ -14,6 +14,10 @@ extern "C" { * INCLUDES *********************/ +#include "../../lvgl_public.h" + +#if LV_USE_NUTTX + /********************* * DEFINES *********************/ @@ -34,6 +38,8 @@ void lv_nuttx_cache_deinit(void); * MACROS **********************/ +#endif /*LV_USE_NUTTX*/ + #ifdef __cplusplus } /*extern "C"*/ #endif diff --git a/src/drivers/nuttx/lv_nuttx_image_cache.h b/src/drivers/nuttx/lv_nuttx_image_cache.h index 3a09c6a204..f6cd86197f 100644 --- a/src/drivers/nuttx/lv_nuttx_image_cache.h +++ b/src/drivers/nuttx/lv_nuttx_image_cache.h @@ -15,6 +15,9 @@ extern "C" { *********************/ #include "../../lvgl_public.h" + +#if LV_USE_NUTTX + #include LV_STDBOOL_INCLUDE /********************* @@ -37,6 +40,8 @@ void lv_nuttx_image_cache_deinit(void); * MACROS **********************/ +#endif /*LV_USE_NUTTX*/ + #ifdef __cplusplus } /*extern "C"*/ #endif