diff --git a/platform/include/platform/mbed_toolchain.h b/platform/include/platform/mbed_toolchain.h index 2fa91d69e26..f9c016ab8ec 100644 --- a/platform/include/platform/mbed_toolchain.h +++ b/platform/include/platform/mbed_toolchain.h @@ -33,6 +33,11 @@ #endif #endif +/* Fix strrchr() not declared for IAR, used in MBED_FILENAME */ +#if defined(__ICCARM__) +#include +#endif + // Warning for unsupported compilers #if !defined(__GNUC__) /* GCC */ \ && !defined(__clang__) /* LLVM/Clang */ \