/* Copyright 1999 Element 14 Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#pragma force_top_level
#pragma include_only_once

/* stdbool.h: ISO 'C' (WG14/N843 Aug 98) library header, section 7.16 */
/* Copyright (C) Element 14 Ltd. 1999 */
/* version 1.00 */

#ifndef __stdbool_h
#define __stdbool_h

#define false 0
#define true  1

#ifdef __STDC_VERSION__
#if __STDC_VERSION__ >= 199901L

/*
 * According to the FDIS of August 1998, _Bool is a built-in type, and
 * bool is #defined to it. This will require compiler support...
 */
#define bool  _Bool

#define __bool_true_false_are_defined 1

#endif
#endif

#ifndef __bool_true_false_are_defined

/*
 * This is bool, as per the working draft of November 1997. We can do this
 * without tweaking the compiler. This should be largely indistiguishable
 * when used in a conformant manner. Note that sizeof(bool) will almost
 * certainly shrink from 4 to 1 when _Bool is implemented...
 *
 * Would like bool to be a char, but it must be useable as a bitfield.
 * Therefore, we use int. Note that an int bitfield is unsigned, so bool:1
 * is unsigned, as required.
 */
typedef int bool;

#define __bool_true_false_are_defined 1

#endif

#endif

/* end of stdbool.h */