From eb8831a1416ab2ee8123b3add78421c2aa316b39 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 19 Apr 2023 04:29:10 +0100 Subject: Rename attribute macros to namespaced RC_* This conflicts with linux-headers which uses __unused for some padding members on ppc64le at least. Closes: https://github.com/OpenRC/openrc/issues/622 --- src/libeinfo/einfo.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/libeinfo') diff --git a/src/libeinfo/einfo.h b/src/libeinfo/einfo.h index d9f1b54e..4fd5425b 100644 --- a/src/libeinfo/einfo.h +++ b/src/libeinfo/einfo.h @@ -13,13 +13,8 @@ #ifndef __EINFO_H__ #define __EINFO_H__ -#if defined(__GNUC__) -# define EINFO_PRINTF(a, b) __attribute__((__format__(__printf__, a, b))) -# define EINFO_XPRINTF(a, b) __attribute__((__noreturn__,__format__(__printf__, a, b))) -#else -# define EINFO_PRINTF(a, b) -# define EINFO_XPRINTF(a, b) -#endif +#define EINFO_PRINTF(a, b) __attribute__((__format__(__printf__, a, b))) +#define EINFO_XPRINTF(a, b) __attribute__((__noreturn__, __format__(__printf__, a, b))) #include #include -- cgit v1.2.3