diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/fortify-headers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index bd53954..70b7952 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -39,8 +39,13 @@ | |||
| 39 | 39 | ||
| 40 | /* clang uses overloads; see https://github.com/llvm/llvm-project/issues/53516 */ | 40 | /* clang uses overloads; see https://github.com/llvm/llvm-project/issues/53516 */ |
| 41 | /* we can't use extern inline with overloads without making them external */ | 41 | /* we can't use extern inline with overloads without making them external */ |
| 42 | #ifdef __cplusplus | ||
| 43 | #define _FORTIFY_INLINE __inline__ \ | ||
| 44 | __attribute__((__always_inline__,__artificial__,__overloadable__)) | ||
| 45 | #else | ||
| 42 | #define _FORTIFY_INLINE static __inline__ \ | 46 | #define _FORTIFY_INLINE static __inline__ \ |
| 43 | __attribute__((__always_inline__,__artificial__,__overloadable__)) | 47 | __attribute__((__always_inline__,__artificial__,__overloadable__)) |
| 48 | #endif | ||
| 44 | 49 | ||
| 45 | #else /* !__clang__ */ | 50 | #else /* !__clang__ */ |
| 46 | 51 | ||
