diff --git a/flips.cpp b/flips.cpp index 3e0cb2c..01dd94f 100644 --- a/flips.cpp +++ b/flips.cpp @@ -386,7 +386,7 @@ struct errorinfo ApplyPatchMem2(file* patch, struct mem inrom, bool verifyinput, if (++errtextid == 2) errtextid=0; if (inf.size_in != inrom.len) { -//http://msdn.microsoft.com/en-us/library/vstudio/tcxf1dw6.aspx says %zX is not supported +//http://msdn.microsoft.com/en-us/library/vstudio/tcxf1dw6.aspx says %zX is not supported; this is true up to and including Windows Vista //let's define it to whatever they do support. #ifdef _WIN32 #define z "I" diff --git a/make.sh b/make.sh index ca18087..ba60402 100755 --- a/make.sh +++ b/make.sh @@ -10,12 +10,12 @@ echo 'Windows/Resource (Wine warmup)' wine windres flips.rc rc.o echo 'Windows (1/3)' -rm flips.exe; CFLAGS=$FLAGS' -fprofile-generate' wine mingw32-make TARGET=windows LFLAGS='-s -lgcov' +rm flips.exe; CFLAGS=$FLAGS' -fprofile-generate' wine mingw32-make TARGET=windows LFLAGS='-lgcov' [ -e flips.exe ] || exit echo 'Windows (2/3)' profile/profile.sh 'wine flips.exe' NUL echo 'Windows (3/3)' -rm flips.exe; CFLAGS=$FLAGS' -fprofile-use' wine mingw32-make TARGET=windows LFLAGS='-s' +rm flips.exe; CFLAGS=$FLAGS' -fprofile-use' wine mingw32-make TARGET=windows LFLAGS='' rm *.gcda rc.o #verify there are no unexpected dependencies @@ -30,12 +30,12 @@ rm flips; make TARGET=cli DIVSUF=no #create linux binary echo 'GTK+ (1/3)' -rm flips; CFLAGS=$FLAGS' -fprofile-generate' make TARGET=gtk LFLAGS='-s -lgcov' +rm flips; CFLAGS=$FLAGS' -fprofile-generate' make TARGET=gtk LFLAGS='-lgcov' [ -e flips ] || exit echo 'GTK+ (2/3)' profile/profile.sh ./flips echo 'GTK+ (3/3)' -rm flips; CFLAGS=$FLAGS' -fprofile-use' make TARGET=gtk LFLAGS='-s' +rm flips; CFLAGS=$FLAGS' -fprofile-use' make TARGET=gtk LFLAGS='' rm *.gcda mv flips ~/bin/flips # keeping this one for myself