Fix format specifiers for ANSI stdio

Instead of using the windows-specific "I64d" format specifier, use the
friendly MinGW abstraction PRId64, which works both when
__USE_MINGW_ANSI_STDIO is enabled and when it is disabled.

Signed-off-by: David Horstmann <[email protected]>
This commit is contained in:
David Horstmann
2025-05-15 17:02:47 +01:00
parent 3bd433d38a
commit 3e715b02e6
+1 -1
View File
@@ -111,7 +111,7 @@
#if defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER < 1900)
#include <inttypes.h>
#define MBEDTLS_PRINTF_SIZET PRIuPTR
#define MBEDTLS_PRINTF_LONGLONG "I64d"
#define MBEDTLS_PRINTF_LONGLONG PRId64
#else \
/* defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER < 1900) */
#define MBEDTLS_PRINTF_SIZET "zu"