diff options
Diffstat (limited to 'libc/include/sys/cdefs.h')
-rw-r--r-- | libc/include/sys/cdefs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/include/sys/cdefs.h b/libc/include/sys/cdefs.h index 71b419c..ca81cb6 100644 --- a/libc/include/sys/cdefs.h +++ b/libc/include/sys/cdefs.h @@ -501,4 +501,13 @@ #define __BIONIC__ 1 #include <android/api-level.h> +#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 && !defined(__clang__) +#define __BIONIC_FORTIFY_INLINE \ + extern inline \ + __attribute__ ((always_inline)) \ + __attribute__ ((gnu_inline)) \ + __attribute__ ((artificial)) +#define __BIONIC_FORTIFY_UNKNOWN_SIZE ((size_t) -1) +#endif + #endif /* !_SYS_CDEFS_H_ */ |