diff options
author | Elliott Hughes <enh@google.com> | 2018-11-28 15:38:40 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-11-28 18:50:38 -0600 |
commit | 687992df6a48a35df61ac515b29528c887ee6373 (patch) | |
tree | 3e29279bd1e6bd9a597876bf88d968dbfc22a260 /lib/portability.h | |
parent | 96014d82f809ae6c37f8c7c593558c01ceb563cf (diff) | |
download | toybox-687992df6a48a35df61ac515b29528c887ee6373.tar.gz |
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.
Diffstat (limited to 'lib/portability.h')
-rw-r--r-- | lib/portability.h | 2 |
1 files changed, 0 insertions, 2 deletions
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 |