mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
Move definition of SECURITY_WIN32 from makefiles into source.
This makes it easier for people to recompile the source in other contexts or other makefiles.
This commit is contained in:
parent
32adc1a79d
commit
04caa872fe
5
Recipe
5
Recipe
@ -131,10 +131,7 @@
|
||||
# Additional text added verbatim to each individual Makefile.
|
||||
|
||||
!begin vc vars
|
||||
CFLAGS = $(CFLAGS) /DHAS_GSSAPI /DSECURITY_WIN32
|
||||
!end
|
||||
!begin cygwin vars
|
||||
CFLAGS += -DSECURITY_WIN32
|
||||
CFLAGS = $(CFLAGS) /DHAS_GSSAPI
|
||||
!end
|
||||
|
||||
# `make install' target for Unix.
|
||||
|
@ -1159,7 +1159,7 @@ if (defined $makefiles{'vstudio10'} || defined $makefiles{'vstudio12'}) {
|
||||
" <SuppressStartupBanner>true</SuppressStartupBanner>\n" .
|
||||
" <WarningLevel>Level3</WarningLevel>\n" .
|
||||
" <AdditionalIncludeDirectories>" . (join ";", map {"..\\..\\$dirpfx$_"} @srcdirs) . ";%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\n" .
|
||||
" <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;SECURITY_WIN32;POSIX;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>\n" .
|
||||
" <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;POSIX;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>\n" .
|
||||
" <AssemblerListingLocation>.\\Release\\</AssemblerListingLocation>\n" .
|
||||
" <PrecompiledHeaderOutputFile>.\\Release\\$windows_project.pch</PrecompiledHeaderOutputFile>\n" .
|
||||
" <ObjectFileName>.\\Release\\</ObjectFileName>\n" .
|
||||
@ -1198,7 +1198,7 @@ if (defined $makefiles{'vstudio10'} || defined $makefiles{'vstudio12'}) {
|
||||
" <MinimalRebuild>true</MinimalRebuild>\n" .
|
||||
" <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\n" .
|
||||
" <AdditionalIncludeDirectories>" . (join ";", map {"..\\..\\$dirpfx$_"} @srcdirs) . ";%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\n" .
|
||||
" <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;SECURITY_WIN32;POSIX;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>\n" .
|
||||
" <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;POSIX;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>\n" .
|
||||
" <AssemblerListingLocation>.\\Debug\\</AssemblerListingLocation>\n" .
|
||||
" <PrecompiledHeaderOutputFile>.\\Debug\\$windows_project.pch</PrecompiledHeaderOutputFile>\n" .
|
||||
" <ObjectFileName>.\\Debug\\</ObjectFileName>\n" .
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
#include "putty.h"
|
||||
|
||||
#define SECURITY_WIN32
|
||||
#include <security.h>
|
||||
|
||||
#include "pgssapi.h"
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "putty.h"
|
||||
#define SECURITY_WIN32
|
||||
#include <security.h>
|
||||
|
||||
OSVERSIONINFO osVersion;
|
||||
|
Loading…
Reference in New Issue
Block a user