X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdbool.h;h=a01cc2f600cc93345629c56db7d755134c818ad2;hb=3862b03514c94f37966f61693619e6483ead6045;hp=6e9c83f07acaad0fdfea42e394c49abbb30e1297;hpb=c8f799d852e3698468a78954d82588e841cc0b70;p=pdclib.old diff --git a/includes/stdbool.h b/includes/stdbool.h index 6e9c83f..a01cc2f 100644 --- a/includes/stdbool.h +++ b/includes/stdbool.h @@ -1,35 +1,21 @@ -/* ---------------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------------- - * Public Domain C Library - http://pdclib.sourceforge.net - * This code is Public Domain. Use, modify, and redistribute at will. - * ---------------------------------------------------------------------------- - * Boolean type and values - * ---------------------------------------------------------------------------- - * This header is part of a freestanding implementation - * --------------------------------------------------------------------------*/ +/* $Id$ */ -#ifndef _STDBOOL_H -#define _STDBOOL_H _STDBOOL_H +/* 7.16 Boolean type and values -/* ---------------------------------------------------------------------------- - * MACROS - * --------------------------------------------------------------------------*/ + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ -#define __bool_true_false_are_defined 1 +#ifndef _PDCLIB_STDBOOL_H +#define _PDCLIB_STDBOOL_H _PDCLIB_STDBOOL_H #ifndef __cplusplus +#define bool _Bool +#define true 1 +#define false 0 +#endif -#define bool _Bool -#define false 0 -#define true 1 - -/* ---------------------------------------------------------------------------- - * TYPEDEFS - * --------------------------------------------------------------------------*/ - -typedef int bool; +#define __bool_true_false_are_defined 1 -#endif /* __cplusplus */ +#endif -#endif /* _STDBOOL_H */