Fixes platform time_t abstraction
Fixes platform abstraction in error.c and the file that it's generated from as well as DTLS samples.
This commit is contained in:
parent
c21bec8af4
commit
db0feca55c
5 changed files with 6 additions and 0 deletions
|
@ -237,6 +237,8 @@ int mbedtls_platform_set_exit( void (*exit_func)( int status ) );
|
|||
#if defined(MBEDTLS_PLATFORM_TIME_TYPE_MACRO)
|
||||
typedef MBEDTLS_PLATFORM_TIME_TYPE_MACRO mbedtls_time_t;
|
||||
#else
|
||||
/* For time_t */
|
||||
#include <time.h>
|
||||
typedef time_t mbedtls_time_t;
|
||||
#endif /* MBEDTLS_PLATFORM_TIME_TYPE_MACRO */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue