52#if !defined(_POSIX_C_SOURCE)
53#define _POSIX_C_SOURCE 200112L
56#if !defined(MBEDTLS_CONFIG_FILE)
59#include MBEDTLS_CONFIG_FILE
69#if !defined(MBEDTLS_PLATFORM_ZEROIZE_ALT)
107#if defined(MBEDTLS_HAVE_TIME_DATE) && !defined(MBEDTLS_PLATFORM_GMTIME_R_ALT)
109#if !defined(_WIN32) && (defined(unix) || \
110 defined(__unix) || defined(__unix__) || (defined(__APPLE__) && \
116#if !( ( defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L ) || \
117 ( defined(_POSIX_THREAD_SAFE_FUNCTIONS ) && \
118 _POSIX_THREAD_SAFE_FUNCTIONS >= 200112L ) )
126#if ! ( defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) )
127#define PLATFORM_UTIL_USE_GMTIME
137#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
138 return( ( gmtime_s( tm_buf, tt ) == 0 ) ? tm_buf :
NULL );
139#elif !defined(PLATFORM_UTIL_USE_GMTIME)
140 return( gmtime_r( tt, tm_buf ) );
144#if defined(MBEDTLS_THREADING_C)
145 if( mbedtls_mutex_lock( &mbedtls_threading_gmtime_mutex ) != 0 )
153 memcpy( tm_buf, lt,
sizeof(
struct tm ) );
156#if defined(MBEDTLS_THREADING_C)
157 if( mbedtls_mutex_unlock( &mbedtls_threading_gmtime_mutex ) != 0 )
161 return( ( lt ==
NULL ) ?
NULL : tm_buf );
GLenum GLuint GLenum GLsizei const GLchar * buf
#define memcpy(s1, s2, n)
_CRTIMP struct tm *__cdecl gmtime(const time_t *_Time)
Configuration options (set of defines)
Threading abstraction layer.