From: Alexandra Ellwood Date: Tue, 5 Jun 2007 20:09:22 +0000 (+0000) Subject: Only use __attribute__ on GNUC compilers X-Git-Tag: krb5-1.7-alpha1~1096 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed77e3e36380daedadf33c4c622927143f97cf74;p=krb5.git Only use __attribute__ on GNUC compilers ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19568 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ccapi/common/cci_debugging.h b/src/ccapi/common/cci_debugging.h index 169981f65..8875e1a03 100644 --- a/src/ccapi/common/cci_debugging.h +++ b/src/ccapi/common/cci_debugging.h @@ -35,6 +35,10 @@ cc_int32 _cci_check_error (cc_int32 in_err, int in_line); #define cci_check_error(err) _cci_check_error(err, __FUNCTION__, __FILE__, __LINE__) -void cci_debug_printf (const char *in_format, ...) __attribute__ ((format (printf, 1, 2))); +void cci_debug_printf (const char *in_format, ...) +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +__attribute__ ((__format__ (__printf__, 1, 2))) +#endif +; #endif /* CCI_DEBUGGING_H */