mirror of https://github.com/mgba-emu/mgba.git
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:
parent
0252c370f2
commit
40d4c430fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue