source: rtems-libbsd/ipsec-tools/src/racoon/gnuc.h @ ff36f5e

5-freebsd-12
Last change on this file since ff36f5e was ff36f5e, checked in by Christian Mauderer <christian.mauderer@…>, on May 30, 2018 at 12:27:35 PM

Import ipsec-tools 0.8.2.

Import unchanged ipsec-tools sources in the release version 0.8.2. The
homepage of ipsec-tools is http://ipsec-tools.sourceforge.net/. The
sources can be obtained from there.

  • Property mode set to 100644
File size: 772 bytes
Line 
1/*      $NetBSD: gnuc.h,v 1.4 2006/09/09 16:22:09 manu Exp $    */
2
3/* Id: gnuc.h,v 1.4 2004/11/18 15:14:44 ludvigm Exp */
4
5/* Define __P() macro, if necessary */
6#undef __P
7#ifndef __P
8#if __STDC__
9#define __P(protos) protos
10#else
11#define __P(protos) ()
12#endif
13#endif
14
15/* inline foo */
16#ifdef __GNUC__
17#define inline __inline
18#else
19#define inline
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
Note: See TracBrowser for help on using the repository browser.