diff --git a/src/compiler.h b/src/compiler.h index de5c17c..814bdd8 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -94,7 +94,11 @@ # define unreachable do {} while(0) #endif -#ifndef __STDC_NO_THREADS__ +#ifndef __has_include +# define __has_include(x) 0 +#endif + +#if !defined(__STDC_NO_THREADS__) && __has_include() # include #elif __STDC_VERSION__ >= 201112L # define thread_local _Thread_local