mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-08 21:50:48 +02:00
Check if _POSIX_C_SOURCE is defined
This commit is contained in:
@@ -131,7 +131,8 @@ static WC_INLINE word64 Entropy_TimeHiRes(void)
|
||||
|
||||
return cnt;
|
||||
}
|
||||
#elif !defined(ENTROPY_MEMUSE_THREAD) && (_POSIX_C_SOURCE >= 199309L)
|
||||
#elif !defined(ENTROPY_MEMUSE_THREAD) && defined(_POSIX_C_SOURCE) && \
|
||||
(_POSIX_C_SOURCE >= 199309L)
|
||||
/* Get the high resolution time counter.
|
||||
*
|
||||
* @return 64-bit time that is the nanoseconds of current time.
|
||||
|
||||
Reference in New Issue
Block a user