Replace c99 fmt macro

For c99 compatible compilers, we use PRI64d
and others use official fix.

Signed-off-by: Jerry Yu <[email protected]>
This commit is contained in:
Jerry Yu
2023-11-21 09:58:18 +08:00
parent fe38e948b8
commit 03511b00aa
+5
View File
@@ -120,7 +120,12 @@
/* (defined(__MINGW32__) && __USE_MINGW_ANSI_STDIO == 0) || (defined(_MSC_VER) && _MSC_VER < 1800) */
#if !defined(MBEDTLS_PRINTF_MS_TIME)
#include <inttypes.h>
#if !defined(PRId64)
#define MBEDTLS_PRINTF_MS_TIME MBEDTLS_PRINTF_LONGLONG
#else
#define MBEDTLS_PRINTF_MS_TIME PRId64
#endif
#endif /* MBEDTLS_PRINTF_MS_TIME */
#ifdef __cplusplus