mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 05:38:14 +00:00
Don't declare and define gmtime()-mutex on Windows platforms
This commit is contained in:
parent
323d8019bf
commit
f5106d54eb
3 changed files with 10 additions and 0 deletions
|
@ -124,7 +124,10 @@ extern mbedtls_threading_mutex_t mbedtls_threading_readdir_mutex;
|
||||||
* threading.c. Remember to update the code there when changing the conditions
|
* threading.c. Remember to update the code there when changing the conditions
|
||||||
* here.
|
* here.
|
||||||
*/
|
*/
|
||||||
|
#if ! ( defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) )
|
||||||
extern mbedtls_threading_mutex_t mbedtls_threading_gmtime_mutex;
|
extern mbedtls_threading_mutex_t mbedtls_threading_gmtime_mutex;
|
||||||
|
#endif /* ! ( defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) ) */
|
||||||
|
|
||||||
#endif /* !( ( defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L ) || \
|
#endif /* !( ( defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L ) || \
|
||||||
( defined(_POSIX_THREAD_SAFE_FUNCTIONS ) && \
|
( defined(_POSIX_THREAD_SAFE_FUNCTIONS ) && \
|
||||||
_POSIX_THREAD_SAFE_FUNCTIONS >= 20112L ) ) */
|
_POSIX_THREAD_SAFE_FUNCTIONS >= 20112L ) ) */
|
||||||
|
|
|
@ -94,7 +94,10 @@ void mbedtls_platform_zeroize( void *buf, size_t len )
|
||||||
* threading.h. However, this macro is not part of the Mbed TLS public API, so
|
* threading.h. However, this macro is not part of the Mbed TLS public API, so
|
||||||
* we keep it private by only defining it in this file
|
* we keep it private by only defining it in this file
|
||||||
*/
|
*/
|
||||||
|
#if ! ( defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) )
|
||||||
#define PLATFORM_UTIL_USE_GMTIME
|
#define PLATFORM_UTIL_USE_GMTIME
|
||||||
|
#endif /* ! ( defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) ) */
|
||||||
|
|
||||||
#endif /* !( ( defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L ) || \
|
#endif /* !( ( defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L ) || \
|
||||||
( defined(_POSIX_THREAD_SAFE_FUNCTIONS ) && \
|
( defined(_POSIX_THREAD_SAFE_FUNCTIONS ) && \
|
||||||
_POSIX_THREAD_SAFE_FUNCTIONS >= 20112L ) ) */
|
_POSIX_THREAD_SAFE_FUNCTIONS >= 20112L ) ) */
|
||||||
|
|
|
@ -56,7 +56,11 @@
|
||||||
* threading.h. However, this macro is not part of the Mbed TLS public API, so
|
* threading.h. However, this macro is not part of the Mbed TLS public API, so
|
||||||
* we keep it private by only defining it in this file
|
* we keep it private by only defining it in this file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if ! ( defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) )
|
||||||
#define THREADING_USE_GMTIME
|
#define THREADING_USE_GMTIME
|
||||||
|
#endif /* ! ( defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) ) */
|
||||||
|
|
||||||
#endif /* !( ( defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L ) || \
|
#endif /* !( ( defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L ) || \
|
||||||
( defined(_POSIX_THREAD_SAFE_FUNCTIONS ) && \
|
( defined(_POSIX_THREAD_SAFE_FUNCTIONS ) && \
|
||||||
_POSIX_THREAD_SAFE_FUNCTIONS >= 20112L ) ) */
|
_POSIX_THREAD_SAFE_FUNCTIONS >= 20112L ) ) */
|
||||||
|
|
Loading…
Reference in a new issue