diff options
| author | jvoisin | 2023-10-16 17:48:32 +0200 |
|---|---|---|
| committer | jvoisin | 2023-10-16 17:48:32 +0200 |
| commit | 8439dc0d1b986e7652afd78c1462707f4bf90f8b (patch) | |
| tree | 23de2d8043ae66de37e82c5ebce160bd228f0780 /include | |
| parent | 32b21b7d85383df49030b18240c1409e73001066 (diff) | |
Add a check about redefined macros
Diffstat (limited to 'include')
| -rw-r--r-- | include/fortify-headers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 46d5610..c7b15f9 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -94,7 +94,7 @@ | |||
| 94 | #define __malloc(...) | 94 | #define __malloc(...) |
| 95 | #endif | 95 | #endif |
| 96 | 96 | ||
| 97 | #if __has_attribute (alloc_size) | 97 | #if __has_attribute (alloc_size) && !defined(__alloc_size) |
| 98 | #define __alloc_size(...) __attribute__ ((alloc_size (__VA_ARGS__))) | 98 | #define __alloc_size(...) __attribute__ ((alloc_size (__VA_ARGS__))) |
| 99 | #else | 99 | #else |
| 100 | #define __alloc_size(...) | 100 | #define __alloc_size(...) |
