xref: /minix/usr.sbin/traceroute/gnuc.h (revision 0a6a1f1d)
1 /*	$NetBSD: gnuc.h,v 1.2 2002/07/06 21:51:49 wiz Exp $	*/
2 
3 /* @(#) Header: gnuc.h,v 1.3 95/10/09 02:47:01 leres Exp  (LBL) */
4 
5 /* inline foo */
6 #ifdef __GNUC__
7 #define inline __inline
8 #else
9 #define inline
10 #endif
11 
12 /*
13  * Handle new and old "dead" routine prototypes
14  *
15  * For example:
16  *
17  *	__dead void foo(void) __attribute__((volatile));
18  *
19  */
20 #ifdef __GNUC__
21 #ifndef __dead
22 #define __dead volatile
23 #endif
24 #if __GNUC__ < 2  || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
25 #ifndef __attribute__
26 #define __attribute__(args)
27 #endif
28 #endif
29 #else
30 #ifndef __dead
31 #define __dead
32 #endif
33 #ifndef __attribute__
34 #define __attribute__(args)
35 #endif
36 #endif
37