Skip to content

Commit 4ad123d

Browse files
IAR: let test code use stdio FILE functions
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1 parent 25c1750 commit 4ad123d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/src/test_common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
#define __USE_MINGW_ANSI_STDIO 1
2424
#endif
2525

26+
#if defined(__IAR_SYSTEMS_ICC__)
27+
/* With IAR, enable support for ::FILE functions in stdio.h.
28+
*/
29+
#define _DLIB_FILE_DESCRIPTOR 1
30+
#endif
31+
2632
/* Make sure we have the library configuration, and anything else that
2733
* is deemed necessary in test headers. */
2834
#include <test/build_info.h>

0 commit comments

Comments
 (0)