Skip to content

Commit

Permalink
Merge pull request #7580 from kareem-wolfssl/zd17975
Browse files Browse the repository at this point in the history
Fix missing stdio.h include on Freescale MQX.  Use sprintf as snprintf is not available on MQX.
  • Loading branch information
dgarske authored May 29, 2024
2 parents 200f309 + 911f21e commit 3e9f656
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wolfssl/wolfcrypt/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e9f656

Please sign in to comment.