diff options
| author | jvoisin | 2023-08-22 20:08:52 +0200 |
|---|---|---|
| committer | jvoisin | 2023-08-22 20:08:52 +0200 |
| commit | 2c610a26730540ff917cf83dd9dc5387184001b2 (patch) | |
| tree | c80a9fa0791645d98ef48d3d6a4bebfa3b89b4d4 /include/stdio.h | |
| parent | f3ff539ee4d739d704415f3ff17d72a822bb3d9b (diff) | |
Clean up some includes
- Remove a superfluous `#if defined(__has_builtin)` since it's already
accounted for in include/fortify-headers.h
- Replace `_FORTIFY_FD_POS0` with the already existing `_FORTIFY_POS0`
- Factorise some duplicate code into a macro
Diffstat (limited to 'include/stdio.h')
| -rw-r--r-- | include/stdio.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h index 1b244f4..9d29e94 100644 --- a/include/stdio.h +++ b/include/stdio.h | |||
| @@ -153,7 +153,6 @@ _FORTIFY_FN(vsprintf) int vsprintf(char * _FORTIFY_POS0 __s, const char *__f, | |||
| 153 | return __r; | 153 | return __r; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | #if defined(__has_builtin) | ||
| 157 | #if __has_builtin(__builtin_va_arg_pack) | 156 | #if __has_builtin(__builtin_va_arg_pack) |
| 158 | 157 | ||
| 159 | /* clang is missing __builtin_va_arg_pack, so we cannot use these impls | 158 | /* clang is missing __builtin_va_arg_pack, so we cannot use these impls |
| @@ -203,7 +202,6 @@ _FORTIFY_FN(sprintf) int sprintf(char *__s, const char *__f, ...) | |||
| 203 | } | 202 | } |
| 204 | 203 | ||
| 205 | #endif /* __has_builtin(__builtin_va_arg_pack) */ | 204 | #endif /* __has_builtin(__builtin_va_arg_pack) */ |
| 206 | #endif /* defined(__has_builtin) */ | ||
| 207 | 205 | ||
| 208 | #ifdef __cplusplus | 206 | #ifdef __cplusplus |
| 209 | } | 207 | } |
