diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-02-20 13:46:12 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-02-20 13:46:12 +0100 |
commit | 91df00a92543a45a4916cbaeecbbf70bfa946b78 (patch) | |
tree | fe7da4b37b97bd61c677c322e9fe171f59bdddac /include/compat.h | |
parent | 8bb081ad46bc9ce4387f8efed2d0f13690b4c143 (diff) |
Remove ostream_printf
By cobbling together the xattr lines manually in libtar, the
need (and thus the function itself) are removed.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/compat.h')
-rw-r--r-- | include/compat.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/compat.h b/include/compat.h index 8969d6c..7d0a646 100644 --- a/include/compat.h +++ b/include/compat.h @@ -8,12 +8,18 @@ #define COMPAT_H #include "sqfs/predef.h" -#include "io/ostream.h" #include "config.h" #include <limits.h> #include <stdio.h> +#if defined(__GNUC__) || defined(__clang__) +# define PRINTF_ATTRIB(fmt, elipsis) \ + __attribute__ ((format (printf, fmt, elipsis))) +#else +# define PRINTF_ATTRIB(fmt, elipsis) +#endif + #if defined(__GNUC__) && __GNUC__ >= 5 # define SZ_ADD_OV __builtin_add_overflow # define SZ_MUL_OV __builtin_mul_overflow |