stdbool.h revision 142088
165918Sasmodai/*
265918Sasmodai * Copyright (c) 2000 Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>
365918Sasmodai * All rights reserved.
465918Sasmodai *
565918Sasmodai * Redistribution and use in source and binary forms, with or without
665918Sasmodai * modification, are permitted provided that the following conditions
765918Sasmodai * are met:
865918Sasmodai * 1. Redistributions of source code must retain the above copyright
965918Sasmodai *    notice, this list of conditions and the following disclaimer.
1065918Sasmodai * 2. Redistributions in binary form must reproduce the above copyright
1165918Sasmodai *    notice, this list of conditions and the following disclaimer in the
1265918Sasmodai *    documentation and/or other materials provided with the distribution.
1365918Sasmodai *
1465918Sasmodai * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1565918Sasmodai * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1665918Sasmodai * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1765918Sasmodai * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1865918Sasmodai * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1965918Sasmodai * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2065918Sasmodai * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2165918Sasmodai * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2265918Sasmodai * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2365918Sasmodai * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2465918Sasmodai * SUCH DAMAGE.
2565918Sasmodai *
2665918Sasmodai * $FreeBSD: head/include/stdbool.h 142088 2005-02-19 13:47:33Z marius $
2765918Sasmodai */
2865918Sasmodai
2972112Sasmodai#ifndef _STDBOOL_H_
3065918Sasmodai#define	_STDBOOL_H_
3165918Sasmodai
3272112Sasmodai#define	__bool_true_false_are_defined	1
3365918Sasmodai
3498415Sobrien#ifndef __cplusplus
3598415Sobrien
3669356Sasmodai#define	false	0
3769356Sasmodai#define	true	1
3865918Sasmodai
3972112Sasmodai#define	bool	_Bool
40142088Smarius#if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER)
4172112Sasmodaitypedef	int	_Bool;
4265918Sasmodai#endif
4365918Sasmodai
4498415Sobrien#endif /* !__cplusplus */
4598415Sobrien
4672112Sasmodai#endif /* !_STDBOOL_H_ */
47