diff -r eb1f2e154e89 -r f5a1e66df979 textinput/ptihangulcore/inc_symbian/stdbool.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/textinput/ptihangulcore/inc_symbian/stdbool.h Fri Feb 19 23:09:27 2010 +0200 @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2005,2006 Choe Hwanjin +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#ifndef _STDBOOL_H +#define _STDBOOL_H + +#ifdef __SYMBIAN32__ + +#undef bool +#undef true +#undef false + +#define bool int +#define true 1 +#define false 0 + +#else +#include + +#ifndef __cplusplus +#if defined(_STDC_C99) || defined(__C99FEATURES__) || __GNUC__ >= 3 + +#undef bool +#undef true +#undef false + +#define bool _Bool +#define true 1 +#define false 0 + +#define __bool_true_false_are_defined 1 + +#endif /* defined(_STDC_C99) || defined(__C99FEATURES__) || __GNUC__ >= 3 */ +#endif /* __cplusplus */ + +#endif /* __SYMBIAN32__ */ + +#endif /* _STDBOOL_H */