[PATCH] makedep: Allow system stdbool.h to be used with msvcrt.

Brendan Shanks bshanks at codeweavers.com
Thu Aug 6 13:56:14 CDT 2020


Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
---

This is used by an out-of-tree patch (Proton's amd_ags_x64.dll
implementation).

Also, is this correct or should an stdbool.h be added to
include/msvcrt/?

 tools/makedep.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/makedep.c b/tools/makedep.c
index 825458156fb..179dae718cd 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -1560,6 +1560,7 @@ static struct file *open_include_file( const struct makefile *make, struct incl_
     if (pFile->type == INCL_SYSTEM && pFile->use_msvcrt)
     {
         if (!strcmp( pFile->name, "stdarg.h" )) return NULL;
+        if (!strcmp( pFile->name, "stdbool.h" )) return NULL;
         fprintf( stderr, "%s:%d: error: system header %s cannot be used with msvcrt\n",
                  pFile->included_by->file->name, pFile->included_line, pFile->name );
         exit(1);
-- 
2.26.2




More information about the wine-devel mailing list