1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-12-02 14:15:41 -05:00

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

View file

@ -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(<threads.h>)
# include <threads.h>
#elif __STDC_VERSION__ >= 201112L
# define thread_local _Thread_local