summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-07-10 10:35:32 +1000
committerNathan Scott <nathans@redhat.com>2020-07-10 10:35:32 +1000
commitdfd9279f87791e36a5212726781c31fbe7110361 (patch)
treeee044449e757e2ae56e876efd02c5b1965c05924 /CRT.c
parent402e46bb82964366746b86d77eb5afa69c279539 (diff)
Resolve complation issues with -fno-common (default from gcc-10)
Extends the MakeHeader script to auto-generate correct "extern" function declarations in some cases that it currently does not. Related to https://github.com/hishamhm/htop/pull/981
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/CRT.c b/CRT.c
index ca9a10dd..088cd1a4 100644
--- a/CRT.c
+++ b/CRT.c
@@ -131,9 +131,9 @@ typedef enum ColorElements_ {
LAST_COLORELEMENT
} ColorElements;
-void CRT_fatalError(const char* note) __attribute__ ((noreturn));
+extern void CRT_fatalError(const char* note) __attribute__ ((noreturn));
-void CRT_handleSIGSEGV(int sgn);
+extern void CRT_handleSIGSEGV(int sgn);
#define KEY_ALT(x) (KEY_F(64 - 26) + (x - 'A'))

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