include/msvcrt: Add stdbool.h header.

Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Brendan Shanks 2020-08-07 09:38:20 -07:00 committed by Alexandre Julliard
parent b10d99a371
commit bae98df328
2 changed files with 32 additions and 0 deletions

View File

@ -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 \

31
include/msvcrt/stdbool.h Normal file
View File

@ -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 */