mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-09 21:44:28 +00:00
Add std PRI macro for printing milliseconds
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
67bf677bad
commit
041c8c10f9
@ -132,7 +132,7 @@
|
|||||||
/* (defined(__MINGW32__) && __USE_MINGW_ANSI_STDIO == 0) || (defined(_MSC_VER) && _MSC_VER < 1800) */
|
/* (defined(__MINGW32__) && __USE_MINGW_ANSI_STDIO == 0) || (defined(_MSC_VER) && _MSC_VER < 1800) */
|
||||||
|
|
||||||
#if !defined(MBEDTLS_PRINTF_MS_TIME)
|
#if !defined(MBEDTLS_PRINTF_MS_TIME)
|
||||||
#define MBEDTLS_PRINTF_MS_TIME MBEDTLS_PRINTF_LONGLONG
|
#define MBEDTLS_PRINTF_MS_TIME PRId64
|
||||||
#endif /* MBEDTLS_PRINTF_MS_TIME */
|
#endif /* MBEDTLS_PRINTF_MS_TIME */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -43,6 +43,7 @@ typedef time_t mbedtls_time_t;
|
|||||||
typedef MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO mbedtls_ms_time_t;
|
typedef MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO mbedtls_ms_time_t;
|
||||||
#else
|
#else
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <inttypes.h>
|
||||||
typedef int64_t mbedtls_ms_time_t;
|
typedef int64_t mbedtls_ms_time_t;
|
||||||
#endif /* MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO */
|
#endif /* MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user