Skip to content

Commit f515608

Browse files
authored
Merge pull request ARMmbed#15222 from OpenNuvoton/nuvoton_iar_strrchr
Fix strrchr() not declared for IAR
2 parents 835b274 + 9e49cab commit f515608

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

platform/include/platform/mbed_toolchain.h

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
#endif
3434
#endif
3535

36+
/* Fix strrchr() not declared for IAR, used in MBED_FILENAME */
37+
#if defined(__ICCARM__)
38+
#include <string.h>
39+
#endif
40+
3641
// Warning for unsupported compilers
3742
#if !defined(__GNUC__) /* GCC */ \
3843
&& !defined(__clang__) /* LLVM/Clang */ \

0 commit comments

Comments
 (0)