.
This commit is contained in:
parent
93b05f3060
commit
79f30bb23b
3 changed files with 76 additions and 10 deletions
12
colla.h
12
colla.h
|
|
@ -1,6 +1,10 @@
|
|||
#ifndef COLLA_HEADER
|
||||
#define COLLA_HEADER
|
||||
|
||||
#ifdef __linux__
|
||||
#define _DEFAULT_SOURCE 1
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
|
@ -13,10 +17,14 @@
|
|||
#ifndef thread_local
|
||||
#define thread_local
|
||||
#endif
|
||||
#else
|
||||
#else
|
||||
#include <uchar.h>
|
||||
#ifndef thread_local
|
||||
#define thread_local __declspec(thread)
|
||||
#ifdef __WIN32
|
||||
#define thread_local __declspec(thread)
|
||||
#else
|
||||
#define thread_local _Thread_local
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue