-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed libgcrypt mpi inline attributes
- Loading branch information
1 parent
3fb2b2d
commit 593d7b5
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
modulesets/patches/libgcrypt-1.4.5-fix-mpi-inline-attr.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
*** libgcrypt-1.4.5/mpi/mpi-inline.h 2009-04-02 11:25:32.000000000 +0200 | ||
--- libgcrypt-1.4.5-new/mpi/mpi-inline.h 2017-06-19 15:33:19.139517989 +0200 | ||
*************** | ||
*** 29,34 **** | ||
#define G10_MPI_INLINE_H | ||
|
||
#ifndef G10_MPI_INLINE_DECL | ||
! #define G10_MPI_INLINE_DECL extern __inline__ | ||
#endif | ||
|
||
--- 29,41 ---- | ||
#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 | ||
! # ifdef __GNUC_STDC_INLINE__ | ||
! # define G10_MPI_INLINE_DECL extern inline __attribute__ ((__gnu_inline__)) | ||
! # else | ||
! # define G10_MPI_INLINE_DECL extern __inline__ | ||
! # endif | ||
#endif | ||
|