Revert "Fix the clang build: this compiler doesn't support the gnu_inline function attribute"
This reverts commit 4f1f149c3757c594f9ff987e5ddd919c3e7dba10.
This commit is contained in:
parent
1c861728e5
commit
2b7f68c03d
@ -502,18 +502,11 @@
|
|||||||
#include <android/api-level.h>
|
#include <android/api-level.h>
|
||||||
|
|
||||||
#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
|
#if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0
|
||||||
#if defined(__clang__)
|
|
||||||
#define __BIONIC_FORTIFY_INLINE \
|
|
||||||
extern inline \
|
|
||||||
__attribute__ ((always_inline)) \
|
|
||||||
__attribute__ ((artificial))
|
|
||||||
#else
|
|
||||||
#define __BIONIC_FORTIFY_INLINE \
|
#define __BIONIC_FORTIFY_INLINE \
|
||||||
extern inline \
|
extern inline \
|
||||||
__attribute__ ((always_inline)) \
|
__attribute__ ((always_inline)) \
|
||||||
__attribute__ ((gnu_inline)) \
|
__attribute__ ((gnu_inline)) \
|
||||||
__attribute__ ((artificial))
|
__attribute__ ((artificial))
|
||||||
#endif
|
|
||||||
#define __BIONIC_FORTIFY_UNKNOWN_SIZE ((size_t) -1)
|
#define __BIONIC_FORTIFY_UNKNOWN_SIZE ((size_t) -1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user