stdbool.h revision 256281
1156888Srwatson/* 2180701Srwatson * Copyright (c) 2000 Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> 3176627Srwatson * All rights reserved. 4156888Srwatson * 5156888Srwatson * Redistribution and use in source and binary forms, with or without 6156888Srwatson * modification, are permitted provided that the following conditions 7156888Srwatson * are met: 8156888Srwatson * 1. Redistributions of source code must retain the above copyright 9156888Srwatson * notice, this list of conditions and the following disclaimer. 10156888Srwatson * 2. Redistributions in binary form must reproduce the above copyright 11156888Srwatson * notice, this list of conditions and the following disclaimer in the 12156888Srwatson * documentation and/or other materials provided with the distribution. 13156888Srwatson * 14180701Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15156888Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16156888Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17156888Srwatson * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18156888Srwatson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19156888Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20156888Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21156888Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22156888Srwatson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23156888Srwatson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24156888Srwatson * SUCH DAMAGE. 25156888Srwatson * 26156888Srwatson * $FreeBSD: stable/10/include/stdbool.h 228878 2011-12-25 20:15:41Z ed $ 27156888Srwatson */ 28156888Srwatson 29156888Srwatson#ifndef __bool_true_false_are_defined 30156888Srwatson#define __bool_true_false_are_defined 1 31178186Srwatson 32178186Srwatson#ifndef __cplusplus 33178186Srwatson 34156888Srwatson#define false 0 35156888Srwatson#define true 1 36156888Srwatson 37156888Srwatson#define bool _Bool 38156888Srwatson#if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER) 39156888Srwatsontypedef int _Bool; 40156888Srwatson#endif 41156888Srwatson 42156888Srwatson#endif /* !__cplusplus */ 43156888Srwatson#endif /* __bool_true_false_are_defined */ 44156888Srwatson