msvc : fix compilation for c11/c17 lang standards

msvc currently supports up to c17 but does not implement some optional features. see https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-160 and https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-160
This commit is contained in:
shuffle2 2021-09-30 12:47:44 -07:00 committed by Vicki Pfau
parent 0252c370f2
commit 40d4c430fc
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
CXX_GUARD_START
#ifndef DISABLE_THREADING
#if __STDC_VERSION__ >= 201112L
#if (__STDC_VERSION__ >= 201112L) && (__STDC_NO_THREADS__ != 1)
#define ThreadLocal _Thread_local void*
#define ThreadLocalInitKey(X)
#define ThreadLocalSetKey(K, V) K = V