summaryrefslogtreecommitdiff
path: root/package/gnupg/patches/patch-include_mpi_h
blob: a163720ee3411be1c09779bccb6628436498563e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- gnupg-1.4.23.orig/include/mpi.h	2016-04-22 09:30:18.000000000 +0200
+++ gnupg-1.4.23/include/mpi.h	2021-09-17 16:07:15.508427621 +0200
@@ -38,6 +38,8 @@
 #ifndef EXTERN_UNLESS_MAIN_MODULE
 #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