X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdbool.h;h=25dc513ead123f3f2ed1042d6ad5d068b3452424;hb=b1fc26afebd4d557ff89a44bc21767a8704c3809;hp=6e9c83f07acaad0fdfea42e394c49abbb30e1297;hpb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;p=pdclib diff --git a/includes/stdbool.h b/includes/stdbool.h index 6e9c83f..25dc513 100644 --- a/includes/stdbool.h +++ b/includes/stdbool.h @@ -1,35 +1,16 @@ -/* ---------------------------------------------------------------------------- - * $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 - * --------------------------------------------------------------------------*/ +/* Boolean type and values -#ifndef _STDBOOL_H -#define _STDBOOL_H _STDBOOL_H + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ -/* ---------------------------------------------------------------------------- - * MACROS - * --------------------------------------------------------------------------*/ +#ifndef _PDCLIB_STDBOOL_H +#define _PDCLIB_STDBOOL_H _PDCLIB_STDBOOL_H +#define bool _Bool +#define true 1 +#define false 0 #define __bool_true_false_are_defined 1 -#ifndef __cplusplus +#endif -#define bool _Bool -#define false 0 -#define true 1 - -/* ---------------------------------------------------------------------------- - * TYPEDEFS - * --------------------------------------------------------------------------*/ - -typedef int bool; - -#endif /* __cplusplus */ - -#endif /* _STDBOOL_H */