From 4364f5147697f3c6a9147efd74eec82586cf568c Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sat, 29 Oct 2022 16:53:47 -0400 Subject: [PATCH] cbe: finish partial zig_noreturn rewrite --- lib/include/zig.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/include/zig.h b/lib/include/zig.h index 95c7b8b4b3..ea2bbca132 100644 --- a/lib/include/zig.h +++ b/lib/include/zig.h @@ -176,16 +176,12 @@ #if __STDC_VERSION__ >= 201112L #define zig_noreturn _Noreturn void -#define zig_threadlocal thread_local -#elif __GNUC__ -#define zig_noreturn __attribute__ ((noreturn)) void -#define zig_threadlocal __thread +#elif zig_has_attribute(noreturn) +#define zig_noreturn __attribute__((noreturn)) void #elif _MSC_VER #define zig_noreturn __declspec(noreturn) void -#define zig_threadlocal __declspec(thread) #else #define zig_noreturn void -#define zig_threadlocal zig_threadlocal_unavailable #endif #define zig_bitSizeOf(T) (CHAR_BIT * sizeof(T))