diff options
-rw-r--r-- | xlsclients.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/xlsclients.c b/xlsclients.c index 0fbe1cf..94ee214 100644 --- a/xlsclients.c +++ b/xlsclients.c @@ -48,6 +48,10 @@ in this Software without prior written authorization from The Open Group. #define PRIu32 "u" #endif +#ifndef __has_attribute +# define __has_attribute(x) 0 /* Compatibility with older compilers. */ +#endif + static char *ProgramName; static xcb_atom_t WM_STATE; @@ -64,7 +68,13 @@ typedef int Bool; #define False (0) #define True (!False) -static void +static void +#if __has_attribute(__cold__) +__attribute__((__cold__)) +#endif +#if __has_attribute(noreturn) +__attribute__((noreturn)) +#endif usage(const char *errmsg) { if (errmsg != NULL) |