2
* Copyright 2008, Broadcom Corporation
2
* Copyright (C) 2010, Broadcom Corporation
3
3
* All Rights Reserved.
5
* Unless you and Broadcom execute a separate written software license
6
* agreement governing use of this software, this software is licensed to you
7
* under the terms of the GNU General Public License version 2, available at
8
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL"), with the
9
* following added to such license:
10
* As a special exception, the copyright holders of this software give you
11
* permission to link this software with independent modules, regardless of the
12
* license terms of these independent modules, and to copy and distribute the
13
* resulting executable under terms of your choice, provided that you also meet,
14
* for each linked independent module, the terms and conditions of the license
15
* of that module. An independent module is a module which is not derived from
18
5
* THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
19
6
* KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
20
7
* SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
21
8
* FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
23
* $Id: typedefs.h,v 1.85.32.8 2009/02/26 17:07:08 Exp $
9
* $Id: typedefs.h,v 1.96.28.1.8.1 2009/11/30 22:27:30 Exp $
26
12
#ifndef _TYPEDEFS_H_
179
176
#define PTRSZ sizeof(char*)
179
#if defined(__GNUC__)
180
#define BWL_COMPILER_GNU
181
#elif defined(__CC_ARM) && __CC_ARM
182
#define BWL_COMPILER_ARMCC
184
#error "Unknown compiler!"
184
#if defined(__GNUC__)
186
#define INLINE __inline__
188
#if defined(BWL_COMPILER_MICROSOFT)
189
#define INLINE __inline
190
#elif defined(BWL_COMPILER_GNU)
191
#define INLINE __inline__
192
#elif defined(BWL_COMPILER_ARMCC)
193
#define INLINE __inline
196
199
#undef TYPEDEF_BOOL