]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Define SECURITY_WIN32 for Winelib/Cygwin builds as well as for VC.
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 13 Sep 2012 22:33:27 +0000 (22:33 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
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>

[originally from svn r9662]

Recipe

diff --git a/Recipe b/Recipe
index 94069153fc796fdf46efb00670825753d0b42fa4..c566c7a3a30cf589204bc8ce2e837dd96e6dd5e2 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