about summary refs log tree commit diff
path: root/src/portab/portab.h
diff options
context:
space:
mode:
authormichi <michi+ngircd@dataswamp.org>2020-04-14 16:53:02 +0200
committerAlexander Barton <alex@barton.de>2020-04-20 00:20:46 +0200
commitf27827d7937375b5348107ca7427abf74c9eff3d (patch)
tree38a1d1de890dd9ccf36879fbedabdf2a34daa95d /src/portab/portab.h
parent9c5e42458ea8dc2aa8db5f122aaa4296d31df67b (diff)
downloadngircd-f27827d7937375b5348107ca7427abf74c9eff3d.tar.gz
ngircd-f27827d7937375b5348107ca7427abf74c9eff3d.zip
Unbreak GCC 10 (-fno-common) build
Diffstat (limited to 'src/portab/portab.h')
-rw-r--r--src/portab/portab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portab/portab.h b/src/portab/portab.h
index 70d5ed3e..43f2f907 100644
--- a/src/portab/portab.h
+++ b/src/portab/portab.h
@@ -102,7 +102,11 @@ typedef unsigned char bool;
 #endif
 
 #undef GLOBAL
+#ifdef GLOBAL_INIT
 #define GLOBAL
+#else
+#define GLOBAL extern
+#endif
 
 /* SPLint */