mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Refactor __attribute__ usage
Use internal macros for compatibility with non GNUC compilers.
This commit is contained in:

committed by
cgzones

parent
f4602f7b4e
commit
7107d1db0b
4
CRT.h
4
CRT.h
@ -7,6 +7,8 @@ Released under the GNU GPL, see the COPYING file
|
||||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include "Macros.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define KEY_WHEELUP KEY_F(20)
|
||||
@ -107,7 +109,7 @@ typedef enum ColorElements_ {
|
||||
LAST_COLORELEMENT
|
||||
} ColorElements;
|
||||
|
||||
void CRT_fatalError(const char* note) __attribute__ ((noreturn));
|
||||
void CRT_fatalError(const char* note) ATTR_NORETURN;
|
||||
|
||||
extern struct sigaction old_sigsegv_handler;
|
||||
void CRT_handleSIGSEGV(int sgn);
|
||||
|
Reference in New Issue
Block a user