aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-07-03 17:11:08 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-07-03 17:11:08 +0000
commit0a447ef39226981ffb81aa6b180f6b1873796aad (patch)
tree186a629af262fbb7f8074394597495623474194c /newlib
parent0def41361be7141762814fb72241ccaabf983f3f (diff)
downloadnewlib-0a447ef39226981ffb81aa6b180f6b1873796aad.zip
newlib-0a447ef39226981ffb81aa6b180f6b1873796aad.tar.gz
newlib-0a447ef39226981ffb81aa6b180f6b1873796aad.tar.bz2
2003-07-03 Shaun Jackman <sjackman@pathwayconnect.com>
* libc/include/stdbool.h: New header file defined by C99.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/stdbool.h22
2 files changed, 26 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index dcf7ef1..6c4251d 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-03 Shaun Jackman <sjackman@pathwayconnect.com>
+
+ * libc/include/stdbool.h: New header file defined by C99.
+
2003-07-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/types.h (int8_t): Make signed.
diff --git a/newlib/libc/include/stdbool.h b/newlib/libc/include/stdbool.h
new file mode 100644
index 0000000..291740a
--- /dev/null
+++ b/newlib/libc/include/stdbool.h
@@ -0,0 +1,22 @@
+#ifndef _STDBOOL_H_
+#define _STDBOOL_H_
+
+#ifndef __cplusplus
+
+#undef bool
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+#define bool _Bool
+#else
+#define bool unsigned char
+#endif
+
+#undef false
+#define false 0
+#undef true
+#define true 1
+
+#define __bool_true_false_are_defined 1
+
+#endif /* !__cplusplus */
+
+#endif /* _STDBOOL_H_ */