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$ 2765918Sasmodai */ 2865918Sasmodai 2972112Sasmodai#ifndef _STDBOOL_H_ 3065918Sasmodai#define _STDBOOL_H_ 3165918Sasmodai 32229285Smdf#ifndef __bool_true_false_are_defined 3372112Sasmodai#define __bool_true_false_are_defined 1 3465918Sasmodai 3598415Sobrien#ifndef __cplusplus 3698415Sobrien 3769356Sasmodai#define false 0 3869356Sasmodai#define true 1 3965918Sasmodai 4072112Sasmodai#define bool _Bool 41142088Smarius#if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER) 4272112Sasmodaitypedef int _Bool; 4365918Sasmodai#endif 4465918Sasmodai 4598415Sobrien#endif /* !__cplusplus */ 46229285Smdf#endif /* __bool_true_false_are_defined */ 4798415Sobrien 4872112Sasmodai#endif /* !_STDBOOL_H_ */ 49