stdbool.h

Go to the documentation of this file.
00001 /*
00002  * © Portions copyright (c) 2005 Nokia Corporation.  All rights reserved.
00003  * Copyright (c) 2000 Jeroen Ruigrok van der Werven <[email protected]>
00004  * All rights reserved.
00005  *
00006  * Redistribution and use in source and binary forms, with or without
00007  * modification, are permitted provided that the following conditions
00008  * are met:
00009  * 1. Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer.
00011  * 2. Redistributions in binary form must reproduce the above copyright
00012  *    notice, this list of conditions and the following disclaimer in the
00013  *    documentation and/or other materials provided with the distribution.
00014  *
00015  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
00016  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00017  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00018  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
00019  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00020  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00021  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00022  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00023  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00024  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00025  * SUCH DAMAGE.
00026  *
00027  * $FreeBSD: src/include/stdbool.h,v 1.7 2005/02/19 13:47:33 marius Exp $
00028  */
00029 
00030 #ifndef _STDBOOL_H_
00031 #define _STDBOOL_H_     
00032 
00033 #if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
00034 #define SYMBIAN
00035 #endif
00036 
00037 #define __bool_true_false_are_defined   1
00038 
00039 #ifndef __cplusplus
00040 
00041 #define false   0
00042 #define true    1
00043 
00044 #ifdef __SYMBIAN32__
00045 #ifdef __WINSCW__
00046 #if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER)
00047 typedef int     _Bool;
00048 #endif 
00049 #endif /* __WINSCW__ */
00050 #else //__SYMBIAN32__
00051 #define bool    _Bool
00052 #if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER)
00053 typedef int     _Bool;
00054 #endif 
00055 #endif//__SYMBIAN32__
00056 
00057 #endif /* !__cplusplus */
00058 
00059 #endif /* !_STDBOOL_H_ */

Copyright © Nokia Corporation 2001-2008
Back to top