diff --git a/platform/mbed_semihost_api.h b/platform/mbed_semihost_api.h index 6d1caf56a0..9127c5ff00 100644 --- a/platform/mbed_semihost_api.h +++ b/platform/mbed_semihost_api.h @@ -28,7 +28,7 @@ extern "C" { #if DEVICE_SEMIHOST -#ifndef __CC_ARM +#if !defined(__CC_ARM) && !defined(__ARMCC_VERSION) #if defined(__ICCARM__) static inline int __semihost(int reason, const void *arg) {