From 9608acf2009f09d3a7176aa8e1c5f7790f22b070 Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Tue, 7 Mar 2017 15:56:46 +0700 Subject: [PATCH] Check if __STDC_VERSION__ is defined (#5488) --- lib/nimbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nimbase.h b/lib/nimbase.h index d6763f8ff5..df715188f1 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -96,7 +96,7 @@ __clang__ NIM_THREADVAR declaration based on 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 #elif defined _WIN32 && ( \ defined _MSC_VER || \