1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/boardsupport/emulator/emulatorbsp/wpdpack/include/gnuc.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,62 @@
1.4 +/*
1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +/* @(#) $Header: /tcpdump/master/libpcap/Win32/Include/Gnuc.h,v 1.1 2002/08/01 08:33:05 risso Exp $ (LBL) */
1.21 +
1.22 +/* Define __P() macro, if necessary */
1.23 +
1.24 +#ifndef __P
1.25 +#if __STDC__
1.26 +#define __P(protos) protos
1.27 +#else
1.28 +#define __P(protos) ()
1.29 +#endif
1.30 +#endif
1.31 +
1.32 +/* inline foo */
1.33 +#ifndef __cplusplus
1.34 +#ifdef __GNUC__
1.35 +#define inline __inline
1.36 +#else
1.37 +#define inline
1.38 +#endif
1.39 +#endif
1.40 +
1.41 +/*
1.42 + * Handle new and old "dead" routine prototypes
1.43 + *
1.44 + * For example:
1.45 + *
1.46 + * __dead void foo(void) __attribute__((volatile));
1.47 + *
1.48 + */
1.49 +#ifdef __GNUC__
1.50 +#ifndef __dead
1.51 +#define __dead volatile
1.52 +#endif
1.53 +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
1.54 +#ifndef __attribute__
1.55 +#define __attribute__(args)
1.56 +#endif
1.57 +#endif
1.58 +#else
1.59 +#ifndef __dead
1.60 +#define __dead
1.61 +#endif
1.62 +#ifndef __attribute__
1.63 +#define __attribute__(args)
1.64 +#endif
1.65 +#endif