Skip to content

Commit

Permalink
Merge pull request #15222 from OpenNuvoton/nuvoton_iar_strrchr
Browse files Browse the repository at this point in the history
Fix strrchr() not declared for IAR
  • Loading branch information
0xc0170 authored Feb 7, 2022
2 parents 835b274 + 9e49cab commit f515608
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/include/platform/mbed_toolchain.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
#endif
#endif

/* Fix strrchr() not declared for IAR, used in MBED_FILENAME */
#if defined(__ICCARM__)
#include <string.h>
#endif

// Warning for unsupported compilers
#if !defined(__GNUC__) /* GCC */ \
&& !defined(__clang__) /* LLVM/Clang */ \
Expand Down

0 comments on commit f515608

Please sign in to comment.