From 17c39b8a782f499eb755c8b3f6a820bce6c6dd8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 30 Nov 2010 21:19:06 +0000 Subject: [PATCH] Avoid unsupported printf format attribute when building with gcc2 (required for BeOS). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: François Revol --- lib/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types.h b/lib/types.h index 3e0e5c3..4d23e69 100644 --- a/lib/types.h +++ b/lib/types.h @@ -58,7 +58,7 @@ typedef u32 pciaddr_t; #define PCIIRQ_FMT "%d" #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && __GNUC__ > 2 #define PCI_PRINTF(x,y) __attribute__((format(printf, x, y))) #else #define PCI_PRINTF(x,y) -- 2.39.5