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:
Pedro F. Giffuni 2015-04-12 16:43:55 +00:00
parent bb9157d5e3
commit 8f4523be7e

View File

@ -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