summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/Libgcrypt/mpi/mpi-inline.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR/Libgcrypt/mpi/mpi-inline.h')
-rw-r--r--plugins/MirOTR/Libgcrypt/mpi/mpi-inline.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/MirOTR/Libgcrypt/mpi/mpi-inline.h b/plugins/MirOTR/Libgcrypt/mpi/mpi-inline.h
index 88d9f56c41..94e2aec8a1 100644
--- a/plugins/MirOTR/Libgcrypt/mpi/mpi-inline.h
+++ b/plugins/MirOTR/Libgcrypt/mpi/mpi-inline.h
@@ -28,8 +28,15 @@
#ifndef G10_MPI_INLINE_H
#define G10_MPI_INLINE_H
+/* Starting with gcc 4.3 "extern inline" conforms in c99 mode to the
+ c99 semantics. To keep the useful old semantics we use an
+ attribute. */
#ifndef G10_MPI_INLINE_DECL
-#define G10_MPI_INLINE_DECL extern __inline__
+# ifdef __GNUC_STDC_INLINE__
+# define G10_MPI_INLINE_DECL extern inline __attribute__ ((__gnu_inline__))
+# else
+# define G10_MPI_INLINE_DECL extern __inline__
+# endif
#endif
G10_MPI_INLINE_DECL mpi_limb_t