[PATCH 1/6] makefiles: Allow using external system headers in PE libraries.

Zebediah Figura zfigura at codeweavers.com
Tue Oct 19 01:08:07 CDT 2021


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 tools/makedep.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/tools/makedep.c b/tools/makedep.c
index a7a7924a20b..2a7cbcad051 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -1406,16 +1406,6 @@ static struct file *open_include_file( const struct makefile *make, struct incl_
         return file;
     }
 
-    if (pFile->type == INCL_SYSTEM && pFile->use_msvcrt &&
-        !make->extlib && !pFile->included_by->is_external)
-    {
-        if (!strcmp( pFile->name, "stdarg.h" )) return NULL;
-        if (!strcmp( pFile->name, "x86intrin.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);
-    }
-
     if (pFile->type == INCL_SYSTEM) return NULL;  /* ignore system files we cannot find */
 
     /* try in src file directory */
-- 
2.33.0




More information about the wine-devel mailing list