equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005,2006 Choe Hwanjin |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "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 #ifndef _STDBOOL_H |
|
18 #define _STDBOOL_H |
|
19 |
|
20 #ifdef __SYMBIAN32__ |
|
21 |
|
22 #undef bool |
|
23 #undef true |
|
24 #undef false |
|
25 |
|
26 #define bool int |
|
27 #define true 1 |
|
28 #define false 0 |
|
29 |
|
30 #else |
|
31 #include <sys/feature_tests.h> |
|
32 |
|
33 #ifndef __cplusplus |
|
34 #if defined(_STDC_C99) || defined(__C99FEATURES__) || __GNUC__ >= 3 |
|
35 |
|
36 #undef bool |
|
37 #undef true |
|
38 #undef false |
|
39 |
|
40 #define bool _Bool |
|
41 #define true 1 |
|
42 #define false 0 |
|
43 |
|
44 #define __bool_true_false_are_defined 1 |
|
45 |
|
46 #endif /* defined(_STDC_C99) || defined(__C99FEATURES__) || __GNUC__ >= 3 */ |
|
47 #endif /* __cplusplus */ |
|
48 |
|
49 #endif /* __SYMBIAN32__ */ |
|
50 |
|
51 #endif /* _STDBOOL_H */ |