mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-03 08:49:58 +00:00
Use dummy typedef instead of macro
Use a dummy definition of mbedtls_ms_time_t in builds without MBEDTLS_HAVE_TIME. Signed-off-by: Bence Szépkúti <[email protected]>
This commit is contained in:
@@ -9,13 +9,9 @@
|
||||
# include <crtdbg.h>
|
||||
#endif
|
||||
|
||||
// Use a macro instead of sizeof(mbedtls_ms_time_t) because the expression store
|
||||
// doesn't exclude entries based on depends_on headers, which would cause failures
|
||||
// in builds without MBEDTLS_HAVE_TIME
|
||||
#if defined(MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO)
|
||||
# define MBEDTLS_MS_TIME_SIZE sizeof(MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO)
|
||||
#else
|
||||
# define MBEDTLS_MS_TIME_SIZE sizeof(int64_t)
|
||||
// Dummy type for builds without MBEDTLS_HAVE_TIME
|
||||
#if !defined(MBEDTLS_HAVE_TIME)
|
||||
typedef int64_t mbedtls_ms_time_t;
|
||||
#endif
|
||||
|
||||
struct buffer_data {
|
||||
|
||||
Reference in New Issue
Block a user