X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fstdbool.h;h=7f58ab7bb029ffe88f22a7547150c847572d2670;hp=734a52dd99733fde260901db7ad395f2306fd3bf;hb=ad2651a3d8a2e2ae70a5ad882518ef346ab1bc7b;hpb=1e221deb9ee725a14b3656f94e2763f8faeb18dc diff --git a/includes/stdbool.h b/includes/stdbool.h index 734a52d..7f58ab7 100644 --- a/includes/stdbool.h +++ b/includes/stdbool.h @@ -10,6 +10,22 @@ #ifndef __STDBOOL_H #define __STDBOOL_H __STDBOOL_H -// TODO +// ---------------------------------------------------------------------------- +// MACROS + +#define __bool_true_false_are_defined 1 + +#ifndef __cplusplus + +#define bool _Bool +#define false 0 +#define true 1 + +// ---------------------------------------------------------------------------- +// TYPEDEFS + +typedef int bool; + +#endif // __cplusplus #endif // __STDBOOL_H