Flesh out BUF_CMD_FLUSH support.
[dragonfly.git] / contrib / dhcp-3.0 / 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) 2004 by Internet Systems Consortium, Inc. ("ISC")
8  * Copyright (c) 1996-2003 by Internet Software Consortium
9  *
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.
13  *
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.
21  *
22  *   Internet Systems Consortium, Inc.
23  *   950 Charter Street
24  *   Redwood City, CA 94063
25  *   <info@isc.org>
26  *   http://www.isc.org/
27  *
28  * This software was written for RadioMail Corporation by Ted Lemon
29  * under a contract with Vixie Enterprises.   Further modifications have
30  * been made for Internet Systems Consortium under a contract
31  * with Vixie Laboratories.
32  */
33
34 #if !defined (__ISC_DHCP_CDEFS_H__)
35 #define __ISC_DHCP_CDEFS_H__
36 /* Delete attributes if not gcc or not the right version of gcc. */
37 #if !defined(__GNUC__) || __GNUC__ < 2 || \
38         (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || defined (darwin)
39 #define __attribute__(x)
40 #endif
41
42 #if (defined (__GNUC__) || defined (__STDC__)) && !defined (BROKEN_ANSI)
43 #define PROTO(x)        x
44 #define KandR(x)
45 #define ANSI_DECL(x)    x
46 #if defined (__GNUC__)
47 #define INLINE          inline
48 #else
49 #define INLINE
50 #endif /* __GNUC__ */
51 #else
52 #define PROTO(x)        ()
53 #define KandR(x)        x
54 #define ANSI_DECL(x)
55 #define INLINE
56 #endif /* __GNUC__ || __STDC__ */
57 #endif /* __ISC_DHCP_CDEFS_H__ */