remove thread_local macro workaround glibc < 2.28
parent
022b64791e
commit
96eca21ac5
|
@ -6,13 +6,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if __has_include(<threads.h>)
|
|
||||||
#include <threads.h>
|
#include <threads.h>
|
||||||
#else
|
|
||||||
// glibc < 2.28
|
|
||||||
#define thread_local _Thread_local
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
Loading…
Reference in New Issue