From 2c610a26730540ff917cf83dd9dc5387184001b2 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 22 Aug 2023 20:08:52 +0200 Subject: 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 --- include/stdio.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/stdio.h') 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, return __r; } -#if defined(__has_builtin) #if __has_builtin(__builtin_va_arg_pack) /* 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, ...) } #endif /* __has_builtin(__builtin_va_arg_pack) */ -#endif /* defined(__has_builtin) */ #ifdef __cplusplus } -- cgit v1.3