diff options
author | Ted Lemon <source@isc.org> | 1999-10-12 16:00:34 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1999-10-12 16:00:34 +0000 |
commit | ab58ff49e0838287e22ad6b68b226a3ced25d7c6 (patch) | |
tree | bf0f33398c77e0a15a10dc122624aa763b0a747d /includes/cdefs.h | |
parent | a414e627d890c85aab29446240ce1f423abffc59 (diff) | |
download | isc-dhcp-ab58ff49e0838287e22ad6b68b226a3ced25d7c6.tar.gz |
Fix up args to printf-like functions (thanks to Pedro Ribiero).
Diffstat (limited to 'includes/cdefs.h')
-rw-r--r-- | includes/cdefs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/cdefs.h b/includes/cdefs.h index f968a806..02fc7fcd 100644 --- a/includes/cdefs.h +++ b/includes/cdefs.h @@ -29,6 +29,12 @@ #if !defined (__ISC_DHCP_CDEFS_H__) #define __ISC_DHCP_CDEFS_H__ +/* Delete attributes if not gcc or not the right version of gcc. */ +#if !defined(__GNUC__) || __GNUC__ < 2 || \ + (__GNUC__ == 2 && __GNUC_MINOR__ < 5) +#define __attribute__(x) +#endif + #if (defined (__GNUC__) || defined (__STDC__)) && !defined (BROKEN_ANSI) #define PROTO(x) x #define KandR(x) |