Merge pull request #288 from jbeich/dragonfly

Try to unbreak build on DragonFly
This commit is contained in:
yshui 2020-01-17 14:37:04 +00:00 committed by GitHub
commit 3ae94de7b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,11 @@
# define unreachable do {} while(0) # define unreachable do {} while(0)
#endif #endif
#ifndef __STDC_NO_THREADS__ #ifndef __has_include
# define __has_include(x) 0
#endif
#if !defined(__STDC_NO_THREADS__) && __has_include(<threads.h>)
# include <threads.h> # include <threads.h>
#elif __STDC_VERSION__ >= 201112L #elif __STDC_VERSION__ >= 201112L
# define thread_local _Thread_local # define thread_local _Thread_local