From e89063e1cf737dfdf69d6105b9345cc318786b49 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Wed, 12 Oct 2022 13:22:55 +0200 Subject: [PATCH] sys/log_color: guard from compiling for esp --- sys/log_color/log_color.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/log_color/log_color.c b/sys/log_color/log_color.c index 7f522592b6..0ffc224412 100644 --- a/sys/log_color/log_color.c +++ b/sys/log_color/log_color.c @@ -15,7 +15,14 @@ * * @author Alexandre Abadie */ +#ifdef MODULE_ESP_COMMON +/* ESP_COMMON provides its own log_module implementation see + * - cpu/esp_common/include/log_module.h + * - cpu/esp_common/include/esp_common_log.h */ +typedef int dont_be_pedantic; /* this c-file is not empty */ + +#else /*MODULE_ESP_COMMON*/ #include #include #include @@ -96,4 +103,6 @@ void log_write(unsigned level, const char *format, ...) fflush(stdout); #endif } + +#endif /*MODULE_ESP_COMMON*/ /**@}*/