diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2007-06-05 20:09:22 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2007-06-05 20:09:22 +0000 |
commit | ed77e3e36380daedadf33c4c622927143f97cf74 (patch) | |
tree | 59d21c649e44b3a2bb978dd19b9708467f14ed50 | |
parent | da1cf3db22a047b6336522dfe2d6fb18278b5ab3 (diff) | |
download | krb5-ed77e3e36380daedadf33c4c622927143f97cf74.tar.gz krb5-ed77e3e36380daedadf33c4c622927143f97cf74.tar.xz krb5-ed77e3e36380daedadf33c4c622927143f97cf74.zip |
Only use __attribute__ on GNUC compilers
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19568 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/ccapi/common/cci_debugging.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 */ |