diff options
| author | Daniel Kolesa | 2022-11-01 20:14:54 +0100 |
|---|---|---|
| committer | jvoisin | 2023-06-25 18:13:11 +0200 |
| commit | adae76af26e498af6c3004a52a4b1de2c6fd91c3 (patch) | |
| tree | a5ce85d93449234065eb8bf891030dd219e92ed1 /include/stdlib.h | |
| parent | 5827cef597d2b9b87b950c9b50023d11b1363c04 (diff) | |
avoid __extension__ with clang
It seems useless and triggers 'error: expected external declaration'
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 8642e83..bc93b60 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
| @@ -16,14 +16,14 @@ | |||
| 16 | #ifndef _FORTIFY_STDLIB_H | 16 | #ifndef _FORTIFY_STDLIB_H |
| 17 | #define _FORTIFY_STDLIB_H | 17 | #define _FORTIFY_STDLIB_H |
| 18 | 18 | ||
| 19 | #ifndef __cplusplus | 19 | #if !defined(__cplusplus) && !defined(__clang__) |
| 20 | __extension__ | 20 | __extension__ |
| 21 | #endif | 21 | #endif |
| 22 | #include_next <stdlib.h> | 22 | #include_next <stdlib.h> |
| 23 | 23 | ||
| 24 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 | 24 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 |
| 25 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | 25 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 26 | #ifndef __cplusplus | 26 | #if !defined(__cplusplus) && !defined(__clang__) |
| 27 | __extension__ | 27 | __extension__ |
| 28 | #endif | 28 | #endif |
| 29 | #include_next <limits.h> | 29 | #include_next <limits.h> |
