X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdbool.h;h=daec901e450eb1633cbe183917c5e07918bb62d1;hb=ea66319bf240c51e4f33caf868e1774e32ef19d6;hp=0e1c2a5ebbe95bd0b14c09242a757ab938d60e1f;hpb=ac3f809c3c10347c110fac3db93af0954eda98bb;p=pdclib diff --git a/includes/stdbool.h b/includes/stdbool.h index 0e1c2a5..daec901 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. -// ---------------------------------------------------------------------------- -// Boolean type and values -// ---------------------------------------------------------------------------- +/* 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 - -#define __bool_true_false_are_defined 1 +#ifndef _PDCLIB_STDBOOL_H +#define _PDCLIB_STDBOOL_H _PDCLIB_STDBOOL_H #ifndef __cplusplus - #define bool _Bool -#define false 0 #define true 1 +#define false 0 +#endif -// ---------------------------------------------------------------------------- -// TYPEDEFS - -typedef int bool; - -#endif // __cplusplus +#define __bool_true_false_are_defined 1 -#endif // __STDBOOL_H +#endif