From 687992df6a48a35df61ac515b29528c887ee6373 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 28 Nov 2018 15:38:40 -0800 Subject: macOS: noreturn. The macOS libc headers use `__attribute__((noreturn))` rather than `__attribute__((__noreturn__))`, so toybox's `noreturn` macro trips them up. Since we already have a variety of uses of `__attribute__` that aren't guarded in this way, let's do the same here. --- lib/portability.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/portability.h') diff --git a/lib/portability.h b/lib/portability.h index c2b29b62..c76beef9 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -10,10 +10,8 @@ // Test for gcc (using compiler builtin #define) #ifdef __GNUC__ -#define noreturn __attribute__((noreturn)) #define printf_format __attribute__((format(printf, 1, 2))) #else -#define noreturn #define printf_format #endif -- cgit v1.2.3