mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-20 07:37:56 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user