diff options
| author | jvoisin | 2023-05-30 22:06:48 +0200 |
|---|---|---|
| committer | jvoisin | 2023-05-30 22:06:48 +0200 |
| commit | 58168afc8b2328c24137820c5fbe7c9775901944 (patch) | |
| tree | 6547738bd087258fc4c4bc6b6e703fd0cb215148 /include/fortify-headers.h | |
| parent | c4247e4389b765179aa1fd0b010f50e8d6bddf4d (diff) | |
Add some __attribute__((access…)) annotations
See https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html for
details
Diffstat (limited to 'include/fortify-headers.h')
| -rw-r--r-- | include/fortify-headers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index a37cd4a..5a3c6e5 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -29,4 +29,8 @@ | |||
| 29 | #define __bos(ptr, type) __builtin_object_size (ptr, type) | 29 | #define __bos(ptr, type) __builtin_object_size (ptr, type) |
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | #if defined __has_attribute && __has_attribute (access) | ||
| 33 | #define __access(...) __attribute__ ((access (__VA_ARGS__))) | ||
| 34 | #endif | ||
| 35 | |||
| 32 | #endif | 36 | #endif |
