diff options
Diffstat (limited to 'src/_perthread.h')
| -rw-r--r-- | src/_perthread.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/_perthread.h b/src/_perthread.h new file mode 100644 index 00000000..5559bb60 --- /dev/null +++ b/src/_perthread.h @@ -0,0 +1,11 @@ +#ifndef ___PERTHREAD_H__ +#define ___PERTHREAD_H__ + +#if defined __STDC_VERSION__ && 201112L <= __STDC_VERSION__ && !defined __STDC_N +O_THREADS__ +#define THREAD_LOCAL static _Thread_local +#else +#define THREAD_LOCAL static +#endif + +#endif |
