X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mkfiles.pl;h=66fc9423104e26f144c1de87d1a51f4284f9989a;hb=88a3baa06541fc6563f5f94bac4758141eada690;hp=d345da80b4d839d76de2ef5334a94d3080bd9d74;hpb=913b9deeec96a6a3a56ebb0b2c3a62450ba7a0df;p=PuTTY.git diff --git a/mkfiles.pl b/mkfiles.pl index d345da80..66fc9423 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -76,7 +76,8 @@ print "# You may also need to tell windres where to find include files:\n". "# RCINC = --include-dir c:\\cygwin\\include\\\n". "\n". -"CFLAGS = -mno-cygwin -Wall -O2 -D_WINDOWS -DDEBUG -DWIN32S_COMPAT -D_NO_OLDNAMES -I.\n". +"CFLAGS = -mno-cygwin -Wall -O2 -D_WINDOWS -DDEBUG -DWIN32S_COMPAT". + " -DNO_SECURITY -D_NO_OLDNAMES -I.\n". "LDFLAGS = -mno-cygwin -s\n". "RCFLAGS = \$(RCINC) --define WIN32=1 --define _WIN32=1 --define WINVER=0x0400 --define MINGW32_FIX=1\n". "LIBS = -ladvapi32 -luser32 -lgdi32 -lwsock32 -lcomctl32 -lcomdlg32 -lwinmm -limm32\n". @@ -129,6 +130,9 @@ print "# so that the .rsp files still depend on the correct makefile.\n". "MAKEFILE = Makefile.bor\n". "\n". +"# C compilation flags\n". +"CFLAGS = -DWINVER=0x0401\n". +"\n". "# Get include directory for resource compiler\n". "!if !\$d(BCB)\n". "BCB = \$(MAKEDIR)\\..\n". @@ -138,7 +142,7 @@ print "\tbcc32 -w-aus -w-ccc -w-par \$(COMPAT) \$(FWHACK) \$(XFLAGS) \$(CFLAGS) /c \$*.c\n". ".rc.res:\n". "\tbrcc32 \$(FWHACK) \$(RCFL) -i \$(BCB)\\include \\\n". -"\t\t-r -DNO_WINRESRC_H -DWIN32 -D_WIN32 -DWINVER=0x0400 \$*.rc\n". +"\t\t-r -DNO_WINRESRC_H -DWIN32 -D_WIN32 -DWINVER=0x0401 \$*.rc\n". "\n". "OBJ=obj\n". "RES=res\n".