winemaker: fix 32-bit compiling and winresrc.h is the right name
André Hentschel
nerv at dawncrow.de
Tue Mar 3 12:49:16 CST 2009
---
tools/winemaker | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/tools/winemaker b/tools/winemaker
index 56597c3..0633524 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -831,6 +831,7 @@ sub source_scan_directory($$$$)
}
if ((@$target[$T_FLAGS] & $TF_NOMSVCRT) == 0) {
push @{@$target[$T_LDFLAGS]},"-mno-cygwin";
+ push @{@$target[$T_LDFLAGS]},"-m32";
}
push @{@$project[$P_TARGETS]},$target;
@@ -1301,17 +1302,17 @@ sub fix_file($$$)
if ($is_rc and !$is_mfc and /^(\s*)(\#\s*include\s*)\"afxres\.h\"/) {
# VC6 automatically includes 'afxres.h', an MFC specific header, in
# the RC files it generates (even in non-MFC projects). So we replace
- # it with 'winres.h' its very close standard cousin so that non MFC
+ # it with 'winresrc.h' its very close standard cousin so that non MFC
# projects can compile in Wine without the MFC sources.
my $warning="mfc:afxres.h";
if (!defined $warnings{$warning}) {
$warnings{$warning}="1";
- print STDERR "warning: In non-MFC projects, winemaker replaces the MFC specific header 'afxres.h' with 'winres.h'\n";
+ print STDERR "warning: In non-MFC projects, winemaker replaces the MFC specific header 'afxres.h' with 'winresrc.h'\n";
print STDERR "warning: the above warning is issued only once\n";
}
print FILEO "$1/* winemaker: $2\"afxres.h\" */\n";
- print FILEO "$1/* winemaker:warning: 'afxres.h' is an MFC specific header. Replacing it with 'winres.h' */\n";
- print FILEO "$1$2\"winres.h\"$'";
+ print FILEO "$1/* winemaker:warning: 'afxres.h' is an MFC specific header. Replacing it with 'winresrc.h' */\n";
+ print FILEO "$1$2\"winresrc.h\"$'";
$modified=1;
} elsif (/^(\s*\#\s*include\s*)([\"<])([^\"]+)([\">])/) {
@@ -1473,7 +1474,7 @@ sub fix_file($$$)
print FILEO;
} elsif ($rc_textinclude_state == 3 and /^(\s*\"\#\s*include\s*\"\")afxres\.h(\"\"\\r\\n\")/) {
- print FILEO "$1winres.h$2$'";
+ print FILEO "$1winresrc.h$2$'";
$modified=1;
} elsif (/^\s*BEGIN(\W.*)?$/) {
--
1.6.0.4
--------------080501000804000209050100--
More information about the wine-patches
mailing list