Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / bsd / libpcap / dist / Win32 / Include / Gnuc.h
blobaa49598737968aee9ba35467cc8a5c203bc7f0b2
1 /* Define __P() macro, if necessary */
3 #ifndef __P
4 #if __STDC__
5 #define __P(protos) protos
6 #else
7 #define __P(protos) ()
8 #endif
9 #endif
11 /* inline foo */
12 #ifndef __cplusplus
13 #ifdef __GNUC__
14 #define inline __inline
15 #else
16 #define inline
17 #endif
18 #endif
21 * Handle new and old "dead" routine prototypes
23 * For example:
25 * __dead void foo(void) __attribute__((volatile));
28 #ifdef __GNUC__
29 #ifndef __dead
30 #define __dead volatile
31 #endif
32 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
33 #ifndef __attribute__
34 #define __attribute__(args)
35 #endif
36 #endif
37 #else
38 #ifndef __dead
39 #define __dead
40 #endif
41 #ifndef __attribute__
42 #define __attribute__(args)
43 #endif
44 #endif