]> mj.ucw.cz Git - pciutils.git/commitdiff
Avoid unsupported printf format attribute when building with gcc2 (required for BeOS).
authorFrançois Revol <revol@free.fr>
Tue, 30 Nov 2010 21:19:06 +0000 (21:19 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 4 Dec 2010 20:32:24 +0000 (21:32 +0100)
Signed-off-by: François Revol <revol@free.fr>
lib/types.h

index 3e0e5c32270df80a5102fc11ba68fed32e6445f9..4d23e692b8547fb5364f88ef91902edfcc38a30d 100644 (file)
@@ -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)