summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorRuslan Mustakov <endragor@users.noreply.github.com>2017-03-07 15:56:46 +0700
committerAndreas Rumpf <rumpf_a@web.de>2017-03-07 09:56:46 +0100
commit9608acf2009f09d3a7176aa8e1c5f7790f22b070 (patch)
tree77b50ae6988a5cce376af7a0d62724dac02e9138 /lib
parent24ec36f097588b4551c87c58de4fec5f1c7135e9 (diff)
downloadNim-9608acf2009f09d3a7176aa8e1c5f7790f22b070.tar.gz
Check if __STDC_VERSION__ is defined (#5488)
Diffstat (limited to 'lib')
-rw-r--r--lib/nimbase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index d6763f8ff..df715188f 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 || \