File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libnet / include / gnuc.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:14:23 2012 UTC (12 years, 5 months ago) by misho
Branches: libnet, MAIN
CVS tags: v1_2p1, v1_1_6p5, v1_1_6p4, v1_1_6p0, v1_1_6, v1_1_2_1, HEAD
libnet

    1: /* @(#) $Header: /usr/local/www/users/anoncvs/cvs/embedaddon/libnet/include/gnuc.h,v 1.1.1.1 2012/02/21 22:14:23 misho Exp $ (LBL) */
    2: 
    3: /* Define __P() macro, if necessary */
    4: #ifndef __P
    5: #if __STDC__
    6: #define __P(protos) protos
    7: #else
    8: #define __P(protos) ()
    9: #endif
   10: #endif
   11: 
   12: /* inline foo */
   13: #ifdef __GNUC__
   14: #define inline __inline
   15: #else
   16: #define inline
   17: #endif
   18: 
   19: /*
   20:  * Handle new and old "dead" routine prototypes
   21:  *
   22:  * For example:
   23:  *
   24:  *	__dead void foo(void) __attribute__((volatile));
   25:  *
   26:  */
   27: #ifdef __GNUC__
   28: #ifndef __dead
   29: #define __dead volatile
   30: #endif
   31: #if __GNUC__ < 2  || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
   32: #ifndef __attribute__
   33: #define __attribute__(args)
   34: #endif
   35: #endif
   36: #else
   37: #ifndef __dead
   38: #define __dead
   39: #endif
   40: #ifndef __attribute__
   41: #define __attribute__(args)
   42: #endif
   43: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>