From 567bd376fabd0caa6e89191c2ee87b41ebbc6cae Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 8 Nov 2010 08:53:35 +0000 Subject: [PATCH] Better fix for __attibute__ usage, this is a GCC feature. [r28137] --- include/libfirm/adt/obstack.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libfirm/adt/obstack.h b/include/libfirm/adt/obstack.h index 7eb92332a..54815a23e 100644 --- a/include/libfirm/adt/obstack.h +++ b/include/libfirm/adt/obstack.h @@ -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. -- 2.20.1