Skip to content

Commit 3e9f656

Browse files
authored
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.
2 parents 200f309 + 911f21e commit 3e9f656

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wolfssl/wolfcrypt/types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,10 @@ typedef struct w64wrapper {
824824
return ret;
825825
}
826826
#define XSNPRINTF _xsnprintf_
827+
#elif defined(FREESCALE_MQX)
828+
/* see wc_port.h for fio.h and nio.h includes. MQX does not
829+
have stdio.h available, so it needs its own section. */
830+
#define XSNPRINTF snprintf
827831
#elif defined(WOLF_C89)
828832
#include <stdio.h>
829833
#define XSPRINTF sprintf

0 commit comments

Comments
 (0)