Define SECURITY_WIN32 for Winelib/Cygwin builds as well as for VC.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 13 Sep 2012 22:33:27 +0000 (22:33 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 13 Sep 2012 22:33:27 +0000 (22:33 +0000)
This should perhaps go into winmisc.c: it's caused problems for
other people too:

<http://stackoverflow.com/questions/8530159/vs2010-build-error-at-putty-source>

git-svn-id: svn://svn.tartarus.org/sgt/putty@9662 cda61777-01e9-0310-a592-d414129be87e

Recipe

diff --git a/Recipe b/Recipe
index 9406915..c566c7a 100644 (file)
--- a/Recipe
+++ b/Recipe
@@ -193,6 +193,7 @@ RCFLAGS = $(RCFLAGS) $(VER)
 !end
 !begin cygwin vars
 # XXX GNU-ism, but it's probably all right for a Cygwin/MinGW Makefile.
+CFLAGS += -DSECURITY_WIN32
 RCFLAGS += $(patsubst -D%,--define %,$(VER))
 !end
 !begin borland vars