equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 /* @(#) $Header: /tcpdump/master/libpcap/Win32/Include/Gnuc.h,v 1.1 2002/08/01 08:33:05 risso Exp $ (LBL) */ |
|
18 |
|
19 /* Define __P() macro, if necessary */ |
|
20 |
|
21 #ifndef __P |
|
22 #if __STDC__ |
|
23 #define __P(protos) protos |
|
24 #else |
|
25 #define __P(protos) () |
|
26 #endif |
|
27 #endif |
|
28 |
|
29 /* inline foo */ |
|
30 #ifndef __cplusplus |
|
31 #ifdef __GNUC__ |
|
32 #define inline __inline |
|
33 #else |
|
34 #define inline |
|
35 #endif |
|
36 #endif |
|
37 |
|
38 /* |
|
39 * Handle new and old "dead" routine prototypes |
|
40 * |
|
41 * For example: |
|
42 * |
|
43 * __dead void foo(void) __attribute__((volatile)); |
|
44 * |
|
45 */ |
|
46 #ifdef __GNUC__ |
|
47 #ifndef __dead |
|
48 #define __dead volatile |
|
49 #endif |
|
50 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) |
|
51 #ifndef __attribute__ |
|
52 #define __attribute__(args) |
|
53 #endif |
|
54 #endif |
|
55 #else |
|
56 #ifndef __dead |
|
57 #define __dead |
|
58 #endif |
|
59 #ifndef __attribute__ |
|
60 #define __attribute__(args) |
|
61 #endif |
|
62 #endif |