Better fix for __attibute__ usage, this is a GCC feature.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 8 Nov 2010 08:53:35 +0000 (08:53 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 8 Nov 2010 08:53:35 +0000 (08:53 +0000)
[r28137]

include/libfirm/adt/obstack.h

index 7eb9233..54815a2 100644 (file)
@@ -507,10 +507,10 @@ __extension__                                                             \
 #      define FIRM_NOTHROW
 #endif
 
-#ifdef _WIN32
-#      define FIRM_PRINTF(a,b)
-#else
+#ifdef __GNUC__
 #      define FIRM_PRINTF(a,b) __attribute__ ((__format__ (__printf__, a, b)))
+#else
+#      define FIRM_PRINTF(a,b)
 #endif
 
 /** prints formated string (printf-style format) to an obstack.