Module: wine
Branch: master
Commit: bae98df3282e4d85cf797b47759db095ea7363f9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bae98df3282e4d85cf797b47…
Author: Brendan Shanks <bshanks(a)codeweavers.com>
Date: Fri Aug 7 09:38:20 2020 -0700
include/msvcrt: Add stdbool.h header.
Signed-off-by: Brendan Shanks <bshanks(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
include/Makefile.in | 1 +
include/msvcrt/stdbool.h | 31 +++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index 1713f0b627..4b18aa2100 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -474,6 +474,7 @@ SOURCES = \
msvcrt/setjmp.h \
msvcrt/share.h \
msvcrt/signal.h \
+ msvcrt/stdbool.h \
msvcrt/stddef.h \
msvcrt/stdint.h \
msvcrt/stdio.h \
diff --git a/include/msvcrt/stdbool.h b/include/msvcrt/stdbool.h
new file mode 100644
index 0000000000..7f19f374c6
--- /dev/null
+++ b/include/msvcrt/stdbool.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2020 Brendan Shanks for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+#ifndef __WINE_STDBOOL_H
+#define __WINE_STDBOOL_H
+
+#ifndef __cplusplus
+
+#define bool _Bool
+#define true 1
+#define false 0
+
+#endif
+
+#define __bool_true_false_are_defined 1
+
+#endif /* __WINE_STDBOOL_H */