]> The Tcpdump Group git mirrors - libpcap/blob - Win32/Include/Gnuc.h
Add a "pcap_close_common()" routine which can be used as the close
[libpcap] / Win32 / Include / Gnuc.h
1 /* @(#) $Header: /tcpdump/master/libpcap/Win32/Include/Gnuc.h,v 1.1 2002-08-01 08:33:05 risso Exp $ (LBL) */
2
3 /* Define __P() macro, if necessary */
4
5 #ifndef __P
6 #if __STDC__
7 #define __P(protos) protos
8 #else
9 #define __P(protos) ()
10 #endif
11 #endif
12
13 /* inline foo */
14 #ifndef __cplusplus
15 #ifdef __GNUC__
16 #define inline __inline
17 #else
18 #define inline
19 #endif
20 #endif
21
22 /*
23 * Handle new and old "dead" routine prototypes
24 *
25 * For example:
26 *
27 * __dead void foo(void) __attribute__((volatile));
28 *
29 */
30 #ifdef __GNUC__
31 #ifndef __dead
32 #define __dead volatile
33 #endif
34 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
35 #ifndef __attribute__
36 #define __attribute__(args)
37 #endif
38 #endif
39 #else
40 #ifndef __dead
41 #define __dead
42 #endif
43 #ifndef __attribute__
44 #define __attribute__(args)
45 #endif
46 #endif