From 70c0c1bf81e430bdbd0f8700271970c1ba4a0159 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Tue, 23 Sep 2025 16:59:59 +0200 Subject: [PATCH] Fix conditional build for non-pico platforms. Signed-off-by: Pol Henarejos --- src/usb/usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usb/usb.c b/src/usb/usb.c index 60946b3..b4d8b40 100644 --- a/src/usb/usb.c +++ b/src/usb/usb.c @@ -42,7 +42,8 @@ static void (*card_locked_func)(void) = NULL; static mutex_t mutex; extern void usb_desc_setup(); #endif -#if !defined(PICO_PLATFORM) && !defined(ENABLE_EMULATION) +#if !defined(PICO_PLATFORM) && !defined(ENABLE_EMULATION) && !defined(ESP_PLATFORM) +#include pthread_t hcore0, hcore1; #endif