Don't test __STDC_VERSION__ unless it's defined.

(Fixes Windows build.)

Change-Id: If6dd5f6ec1263f9e77b852d33b8e3cf0f6dcd95f
This commit is contained in:
Adam Langley 2015-05-20 12:20:40 -07:00
parent 552df47dc0
commit 6e1f64568b

View File

@ -356,7 +356,8 @@ OPENSSL_EXPORT void CRYPTO_once(CRYPTO_once_t *once, void (*init)(void));
/* Reference counting. */
#if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__)
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \
!defined(__STDC_NO_ATOMICS__)
#define OPENSSL_C11_ATOMIC
#endif