summaryrefslogtreecommitdiff
path: root/package/gnupg/patches/patch-g10_options_h
blob: 8481ecc4df4def2af634dfd5bc09a279fc2e52d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- gnupg-1.4.23.orig/g10/options.h	2016-08-17 11:00:11.000000000 +0200
+++ gnupg-1.4.23/g10/options.h	2021-09-17 16:07:15.504427621 +0200
@@ -29,6 +29,8 @@
 /* Norcraft can't cope with common symbols */
 #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
 #define EXTERN_UNLESS_MAIN_MODULE extern
+#elif defined (__GNUC__) && __GNUC__ >= 10
+#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__))
 #else
 #define EXTERN_UNLESS_MAIN_MODULE
 #endif