]> git.saurik.com Git - apple/ipsec.git/blame - ipsec-tools/racoon/gnuc.h
ipsec-146.1.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / gnuc.h
CommitLineData
52b7d2ce
A
1/* $Id: gnuc.h,v 1.4 2004/11/18 15:14:44 ludvigm Exp $ */
2
3/* Define __P() macro, if necessary */
4#undef __P
5#ifndef __P
6#if __STDC__
7#define __P(protos) protos
8#else
9#define __P(protos) ()
10#endif
11#endif
12
13/* inline foo */
14#ifdef __GNUC__
15#define inline __inline
16#else
17#define inline
18#endif
19
20/*
21 * Handle new and old "dead" routine prototypes
22 *
23 * For example:
24 *
25 * __dead void foo(void) __attribute__((volatile));
26 *
27 */
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