]> pd.if.org Git - pdclib.old/blobdiff - includes/stdbool.h
Modify various POSIX platform files so you can build on top of glibc for testing
[pdclib.old] / includes / stdbool.h
index 0e1c2a5ebbe95bd0b14c09242a757ab938d60e1f..a01cc2f600cc93345629c56db7d755134c818ad2 100644 (file)
@@ -1,31 +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
-// ----------------------------------------------------------------------------
+/* $Id$ */
 
-#ifndef __STDBOOL_H
-#define __STDBOOL_H __STDBOOL_H
+/* 7.16 Boolean type and values <stdbool.h>
 
-// ----------------------------------------------------------------------------
-// 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