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.
This commit is contained in:
David Garske 2024-05-29 16:55:34 -07:00 committed by GitHub
commit 3e9f656ac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 <stdio.h>
#define XSPRINTF sprintf