Check if __STDC_VERSION__ is defined (#5488)

This commit is contained in:
Ruslan Mustakov 2017-03-07 15:56:46 +07:00 • committed by Andreas Rumpf
commit 9608acf200

View file

@ -96,7 +96,7 @@ __clang__
NIM_THREADVAR declaration based on NIM_THREADVAR declaration based on
http://stackoverflow.com/questions/18298280/how-to-declare-a-variable-as-thread-local-portably http://stackoverflow.com/questions/18298280/how-to-declare-a-variable-as-thread-local-portably
*/ */
#if __STDC_VERSION__ >= 201112 && !defined __STDC_NO_THREADS__ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112 && !defined __STDC_NO_THREADS__
# define NIM_THREADVAR _Thread_local # define NIM_THREADVAR _Thread_local
#elif defined _WIN32 && ( \ #elif defined _WIN32 && ( \
defined _MSC_VER || \ defined _MSC_VER || \