diff --git a/tools/winapi/winapi_check b/tools/winapi/winapi_check index 762e9d1c873..cf1b22b0424 100755 --- a/tools/winapi/winapi_check +++ b/tools/winapi/winapi_check @@ -639,7 +639,7 @@ foreach my $file (@c_files) { }); if($options->config_unnecessary) { - if($config && $conditional == 0) { + if($config && $conditional == 0 && !exists($include2info{"include/wine/port.h"})) { $output->write("$file: include2info config.h but do not use any conditionals\n"); } }