From 911f21ed36061f9cf6ea52aa2bd417087ecd40eb Mon Sep 17 00:00:00 2001 From: Kareem Date: Fri, 24 May 2024 11:54:23 -0700 Subject: [PATCH] Fix missing stdio.h include and XSNPRINTF definition on Freescale MQX. --- wolfssl/wolfcrypt/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index ef036196a6..703997820c 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -824,6 +824,10 @@ typedef struct w64wrapper { return ret; } #define XSNPRINTF _xsnprintf_ + #elif defined(FREESCALE_MQX) + /* see wc_port.h for fio.h and nio.h includes. MQX does not + have stdio.h available, so it needs its own section. */ + #define XSNPRINTF snprintf #elif defined(WOLF_C89) #include #define XSPRINTF sprintf