diff --git a/platform/source/mbed_retarget.cpp b/platform/source/mbed_retarget.cpp index 28201757a2..cf6dd3c0b7 100644 --- a/platform/source/mbed_retarget.cpp +++ b/platform/source/mbed_retarget.cpp @@ -15,6 +15,11 @@ * limitations under the License. */ +// Workaround for CMSIS 5.8.0, compat header must be placed before any CMSIS header inclusion +#if defined(__ARMCC_VERSION) +# include +#endif + #include #include #include "platform/platform.h" @@ -53,7 +58,6 @@ struct DIR_impl { }; #if defined(__ARMCC_VERSION) -# include # include # include # include