diff --git a/events/equeue/equeue_platform.h b/events/equeue/equeue_platform.h index 9c5bec289d..a63243ed9f 100644 --- a/events/equeue/equeue_platform.h +++ b/events/equeue/equeue_platform.h @@ -49,7 +49,7 @@ extern "C" { // Platform includes #if defined(EQUEUE_PLATFORM_POSIX) #include -#elif defined(EQUEUE_PLATFORM_MBED) +#elif defined(EQUEUE_PLATFORM_MBED) && defined(MBED_CONF_RTOS_PRESENT) #include "cmsis_os2.h" #include "mbed_rtos_storage.h" #endif