summaryrefslogtreecommitdiffstats
path: root/CRT.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-09 21:35:15 +0200
committercgzones <cgzones@googlemail.com>2020-09-18 12:28:40 +0200
commit7107d1db0b3361a3e880d903a45920b64a05e9d6 (patch)
tree926c71c5d2095f156bda3863fc3f8dbcacbc017f /CRT.h
parentf4602f7b4e7fdcf4b3a5d2c0c353b50fef98aa7e (diff)
Refactor __attribute__ usage
Use internal macros for compatibility with non GNUC compilers.
Diffstat (limited to 'CRT.h')
-rw-r--r--CRT.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/CRT.h b/CRT.h
index 4199837e..d7d01e2c 100644
--- a/CRT.h
+++ b/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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy