From 5659825ec20b311ec95b95a75fea0baccf50075d Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 29 May 2024 16:55:34 -0700 Subject: [PATCH] Merge pull request #7580 from kareem-wolfssl/zd17975 Fix missing stdio.h include on Freescale MQX. Use sprintf as snprintf is not available on MQX. --- wolfssl/wolfcrypt/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index c48418653b..b7ceec220b 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