]> git.ipfire.org Git - thirdparty/dhcp.git/blob - includes/cdefs.h
02fc7fcd37dd7dd115ead151c495aa13345a89da
[thirdparty/dhcp.git] / includes / cdefs.h
1 /* cdefs.h
2
3 Standard C definitions... */
4
5 /*
6 * Copyright (c) 1995 RadioMail Corporation. All rights reserved.
7 * Copyright (c) 1996-1999 Internet Software Consortium.
8 *
9 * Use is subject to license terms which appear in the file named
10 * ISC-LICENSE that should have accompanied this file when you
11 * received it. If a file named ISC-LICENSE did not accompany this
12 * file, or you are not sure the one you have is correct, you may
13 * obtain an applicable copy of the license at:
14 *
15 * http://www.isc.org/isc-license-1.0.html.
16 *
17 * This file is part of the ISC DHCP distribution. The documentation
18 * associated with this file is listed in the file DOCUMENTATION,
19 * included in the top-level directory of this release.
20 *
21 * Support and other services are available for ISC products - see
22 * http://www.isc.org for more information.
23 *
24 * This software was written for RadioMail Corporation by Ted Lemon
25 * under a contract with Vixie Enterprises. Further modifications have
26 * been made for the Internet Software Consortium under a contract
27 * with Vixie Laboratories.
28 */
29
30 #if !defined (__ISC_DHCP_CDEFS_H__)
31 #define __ISC_DHCP_CDEFS_H__
32 /* Delete attributes if not gcc or not the right version of gcc. */
33 #if !defined(__GNUC__) || __GNUC__ < 2 || \
34 (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
35 #define __attribute__(x)
36 #endif
37
38 #if (defined (__GNUC__) || defined (__STDC__)) && !defined (BROKEN_ANSI)
39 #define PROTO(x) x
40 #define KandR(x)
41 #define ANSI_DECL(x) x
42 #if defined (__GNUC__)
43 #define INLINE inline
44 #else
45 #define INLINE
46 #endif /* __GNUC__ */
47 #else
48 #define PROTO(x) ()
49 #define KandR(x) x
50 #define ANSI_DECL(x)
51 #define INLINE
52 #endif /* __GNUC__ || __STDC__ */
53 #endif /* __ISC_DHCP_CDEFS_H__ */