From 4ad123d54f843a7571b25abc7c52b9de9b74389a Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 11 Mar 2026 19:20:46 +0100 Subject: [PATCH] IAR: let test code use stdio FILE functions Signed-off-by: Gilles Peskine --- tests/src/test_common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/src/test_common.h b/tests/src/test_common.h index aaeb1e7c8..40bdd4d65 100644 --- a/tests/src/test_common.h +++ b/tests/src/test_common.h @@ -23,6 +23,12 @@ #define __USE_MINGW_ANSI_STDIO 1 #endif +#if defined(__IAR_SYSTEMS_ICC__) +/* With IAR, enable support for ::FILE functions in stdio.h. + */ +#define _DLIB_FILE_DESCRIPTOR 1 +#endif + /* Make sure we have the library configuration, and anything else that * is deemed necessary in test headers. */ #include