Skip to content

Commit d28ff11

Browse files
author
Ben Avison
committed
IAR declares strncasecmp in string.h not strings.h
strings.h is not an ISO header file, so IAR generates fatal error Pe1696 'cannot open source file "strings.h"'. Even though strncasecmp isn't an ISO C library function, IAR's runtime library defines it, though it declares it in string.h instead.
1 parent b624664 commit d28ff11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/device/usbtmc/src/usbtmc_app.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
*
2424
*/
2525

26+
#ifdef __ICCARM__
27+
#include <string.h>
28+
#else
2629
#include <strings.h>
30+
#endif
2731
#include <stdlib.h> /* atoi */
2832
#include "tusb.h"
2933
#include "bsp/board.h"

0 commit comments

Comments
 (0)