X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/1cc8558b672e679ff45e95a6a21101a43bcfc3dc..7781f316d0d6aa3e286c588fb0efc832037e6866:/mkfiles.pl 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".