mirror of
https://github.com/opnsense/src.git
synced 2026-04-25 08:07:28 -04:00
Revert my change; reintroduce __gnu89_inline.
It turns out our compiler in stable/7 can't build this code anymore. Even though my opinion is that those people should just run `make kernel-toolchain' before building a kernel, I am willing to wait and commit this after we've branched stable/8. Requested by: rwatson
This commit is contained in:
parent
ed96654f20
commit
5942207fb4
4 changed files with 9 additions and 3 deletions
|
|
@ -153,7 +153,7 @@ __FBSDID("$FreeBSD$");
|
|||
#endif
|
||||
|
||||
#if !defined(DIAGNOSTIC)
|
||||
#define PMAP_INLINE extern inline
|
||||
#define PMAP_INLINE __gnu89_inline
|
||||
#else
|
||||
#define PMAP_INLINE
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ __FBSDID("$FreeBSD$");
|
|||
#endif
|
||||
|
||||
#if !defined(DIAGNOSTIC)
|
||||
#define PMAP_INLINE extern inline
|
||||
#define PMAP_INLINE __gnu89_inline
|
||||
#else
|
||||
#define PMAP_INLINE
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ __FBSDID("$FreeBSD$");
|
|||
#endif
|
||||
|
||||
#if !defined(PMAP_DIAGNOSTIC)
|
||||
#define PMAP_INLINE extern inline
|
||||
#define PMAP_INLINE __gnu89_inline
|
||||
#else
|
||||
#define PMAP_INLINE
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -234,6 +234,12 @@
|
|||
#define __always_inline
|
||||
#endif
|
||||
|
||||
#if __GNUC_PREREQ__(4, 2) /* actually 4.1.3 */
|
||||
#define __gnu89_inline __attribute__((__gnu_inline__)) __inline
|
||||
#else
|
||||
#define __gnu89_inline
|
||||
#endif
|
||||
|
||||
#if __GNUC_PREREQ__(3, 1)
|
||||
#define __noinline __attribute__ ((__noinline__))
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue