/* $OpenBSD: stdbool.h,v 1.5 2010/07/24 22:17:03 guenther Exp $ */12/*3* Written by Marc Espie, September 25, 19994* Public domain.5*/67#ifndef COMPAT_STDBOOL_H8#define COMPAT_STDBOOL_H910#ifndef __cplusplus1112#if (defined(HAVE__BOOL) && HAVE__BOOL > 0) || defined(lint)13/* Support for _C99: type _Bool is already built-in. */14#define false 015#define true 11617#else18/* `_Bool' type must promote to `int' or `unsigned int'. */19typedef enum {20false = 0,21true = 122} _Bool;2324/* And those constants must also be available as macros. */25#define false false26#define true true2728#endif2930/* User visible type `bool' is provided as a macro which may be redefined */31#define bool _Bool3233#else /* __cplusplus */34#define _Bool bool35#define bool bool36#define false false37#define true true38#endif /* __cplusplus */3940/* Inform that everything is fine */41#define __bool_true_false_are_defined 14243#endif /* COMPAT_STDBOOL_H */444546