X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdbool.h;h=66166e16deea21a6e783fe77e2615f3fe31a7612;hb=235f920dfc1ae871bf8e7ab5f8f3bb56b9ab2e83;hp=7f58ab7bb029ffe88f22a7547150c847572d2670;hpb=ad2651a3d8a2e2ae70a5ad882518ef346ab1bc7b;p=pdclib diff --git a/includes/stdbool.h b/includes/stdbool.h index 7f58ab7..66166e1 100644 --- a/includes/stdbool.h +++ b/includes/stdbool.h @@ -1,31 +1,18 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// TODO -// ---------------------------------------------------------------------------- +/* $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 __cplusplus - -#define bool _Bool -#define false 0 -#define true 1 +#ifndef _PDCLIB_STDBOOL_H +#define _PDCLIB_STDBOOL_H _PDCLIB_STDBOOL_H -// ---------------------------------------------------------------------------- -// TYPEDEFS - -typedef int bool; +#define bool _Bool +#define true 1 +#define false 0 +#define __bool_true_false_are_defined 1 -#endif // __cplusplus +#endif -#endif // __STDBOOL_H