Skip to content

Commit 911f21e

Browse files
Fix missing stdio.h include and XSNPRINTF definition on Freescale MQX.
1 parent 688ae60 commit 911f21e

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)