]>
Commit | Line | Data |
---|---|---|
d7837182 TL |
1 | /* cdefs.h |
2 | ||
3 | Standard C definitions... */ | |
4 | ||
5 | /* | |
6 | * Copyright (c) 1995 RadioMail Corporation. All rights reserved. | |
98311e4b DH |
7 | * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") |
8 | * Copyright (c) 1996-2003 by Internet Software Consortium | |
d7837182 | 9 | * |
98311e4b DH |
10 | * Permission to use, copy, modify, and distribute this software for any |
11 | * purpose with or without fee is hereby granted, provided that the above | |
12 | * copyright notice and this permission notice appear in all copies. | |
d7837182 | 13 | * |
98311e4b DH |
14 | * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES |
15 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
16 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR | |
17 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
18 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
19 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT | |
20 | * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
d7837182 | 21 | * |
98311e4b DH |
22 | * Internet Systems Consortium, Inc. |
23 | * 950 Charter Street | |
24 | * Redwood City, CA 94063 | |
25 | * <info@isc.org> | |
26 | * http://www.isc.org/ | |
d7837182 TL |
27 | * |
28 | * This software was written for RadioMail Corporation by Ted Lemon | |
86461900 | 29 | * under a contract with Vixie Enterprises. Further modifications have |
98311e4b | 30 | * been made for Internet Systems Consortium under a contract |
86461900 | 31 | * with Vixie Laboratories. |
d7837182 TL |
32 | */ |
33 | ||
bfc3d448 TL |
34 | #if !defined (__ISC_DHCP_CDEFS_H__) |
35 | #define __ISC_DHCP_CDEFS_H__ | |
ab58ff49 TL |
36 | /* Delete attributes if not gcc or not the right version of gcc. */ |
37 | #if !defined(__GNUC__) || __GNUC__ < 2 || \ | |
d758ad8c | 38 | (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || defined (darwin) |
ab58ff49 TL |
39 | #define __attribute__(x) |
40 | #endif | |
41 | ||
86461900 | 42 | #if (defined (__GNUC__) || defined (__STDC__)) && !defined (BROKEN_ANSI) |
d7837182 TL |
43 | #define PROTO(x) x |
44 | #define KandR(x) | |
45 | #define ANSI_DECL(x) x | |
86461900 | 46 | #if defined (__GNUC__) |
d7837182 | 47 | #define INLINE inline |
5c324ed2 TL |
48 | #else |
49 | #define INLINE | |
86461900 | 50 | #endif /* __GNUC__ */ |
d7837182 TL |
51 | #else |
52 | #define PROTO(x) () | |
53 | #define KandR(x) x | |
54 | #define ANSI_DECL(x) | |
55 | #define INLINE | |
86461900 | 56 | #endif /* __GNUC__ || __STDC__ */ |
bfc3d448 | 57 | #endif /* __ISC_DHCP_CDEFS_H__ */ |