From: François Revol Date: Tue, 30 Nov 2010 21:19:06 +0000 (+0000) Subject: Avoid unsupported printf format attribute when building with gcc2 (required for BeOS). X-Git-Tag: v3.1.8~11 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=17c39b8a782f499eb755c8b3f6a820bce6c6dd8b;p=pciutils.git Avoid unsupported printf format attribute when building with gcc2 (required for BeOS). Signed-off-by: François Revol --- 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)