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