diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-01 15:23:53 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-03 11:57:20 +0100 |
| commit | f29daebd904c8a3bc2792301be218fe7c99dfe8d (patch) | |
| tree | 7153d2b8a620a70dc9569180fd4137fcbd21bf50 /lib | |
| parent | fa6946f645852363303082447b8087f8213512bb (diff) | |
| download | zig-f29daebd904c8a3bc2792301be218fe7c99dfe8d.tar.gz zig-f29daebd904c8a3bc2792301be218fe7c99dfe8d.zip | |
zig.h: Use __thread for slimcc in pre-C11 mode.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/zig.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -31,6 +31,8 @@ typedef char bool; #define zig_gnuc #elif defined(__TINYC__) #define zig_tinyc +#elif defined(__slimcc__) +#define zig_slimcc #endif #define zig_concat(lhs, rhs) lhs##rhs @@ -61,7 +63,7 @@ typedef char bool; #define zig_threadlocal thread_local #elif __STDC_VERSION__ >= 201112L #define zig_threadlocal _Thread_local -#elif defined(__GNUC__) +#elif defined(__GNUC__) || defined(zig_slimcc) #define zig_threadlocal __thread #elif _MSC_VER #define zig_threadlocal __declspec(thread) |
