From: Michael Beck Date: Mon, 8 Nov 2010 08:53:35 +0000 (+0000) Subject: Better fix for __attibute__ usage, this is a GCC feature. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=567bd376fabd0caa6e89191c2ee87b41ebbc6cae;p=libfirm Better fix for __attibute__ usage, this is a GCC feature. [r28137] --- 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.