Skip to content

Commit d9b9343

Browse files
committed
Check if _POSIX_C_SOURCE is defined
1 parent 17287cd commit d9b9343

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wolfcrypt/src/wolfentropy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ static WC_INLINE word64 Entropy_TimeHiRes(void)
131131

132132
return cnt;
133133
}
134-
#elif !defined(ENTROPY_MEMUSE_THREAD) && (_POSIX_C_SOURCE >= 199309L)
134+
#elif !defined(ENTROPY_MEMUSE_THREAD) && defined(_POSIX_C_SOURCE) && \
135+
(_POSIX_C_SOURCE >= 199309L)
135136
/* Get the high resolution time counter.
136137
*
137138
* @return 64-bit time that is the nanoseconds of current time.

0 commit comments

Comments
 (0)