winemaker: Warn on include path starting with drive letter.

oldstable
André Hentschel 2010-06-22 18:01:13 +02:00 committed by Alexandre Julliard
parent f4679761b7
commit 02efd5a7c0
1 changed files with 5 additions and 1 deletions

View File

@ -670,7 +670,11 @@ sub source_scan_project_file($$$)
# Additional Include Directories
$sfilet=$1;
$sfilet=~s/\\/\//g;
push @{@$project_settings[$T_INCLUDE_PATH]},"-I".$sfilet." ";
if ($sfilet=~/^\w:/) {
print STDERR "warning: Can't fix path $sfilet\n"
} else {
push @{@$project_settings[$T_INCLUDE_PATH]},"-I".$sfilet." ";
}
} elsif (/^U\s*\"(.*)\"/) {
# Undefines a previously defined symbol
$prj_target_cflags.="-U".$1." ";