Add definition for the gcc gnu_inline attribute.
This uses a non-standard (who would guess that) inlining method that is useful for legacy GNU software. This attribute was added in GCC 4.1.3. Older versions of clang would just ignore the attribute but as lately it is supported also there. This is currently unused but it is required for the FORTIFY_SOURCE extension.
This commit is contained in:
parent
bb9157d5e3
commit
8f4523be7e
@ -375,8 +375,10 @@
|
||||
#endif
|
||||
|
||||
#if __GNUC_PREREQ__(4, 1)
|
||||
#define __gnu_inline __attribute__((__gnu_inline__))
|
||||
#define __returns_twice __attribute__((__returns_twice__))
|
||||
#else
|
||||
#define __gnu_inline
|
||||
#define __returns_twice
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user