Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Commit

Permalink
[WIP] Fixing win7 compilation issues. (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotalik authored Sep 13, 2017
1 parent 0120dae commit 5c2906a
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/AspNetCore/Src/precomp.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,38 @@
//
// System related headers
//
#define NTDDI_VERSION 0x06020000
#define _WIN32_WINNT 0x0602
#define _WINSOCKAPI_

#define NTDDI_VERSION 0x06010000
#define WINVER 0x0601
#define _WIN32_WINNT 0x0601

#include <windows.h>
#include <atlbase.h>
#include <pdh.h>

//#include <ntassert.h>
#include <Shlobj.h>
#include <httpserv.h>

// This should remove our issue of compiling for win7 without header files.
// We force the Windows 8 version check logic in iiswebsocket.h to succeed even though we're compiling for Windows 7.
// Then, we set the version defines back to Windows 7 to for the remainder of the compilation.
#undef NTDDI_VERSION
#undef WINVER
#undef _WIN32_WINNT
#define NTDDI_VERSION 0x06020000
#define WINVER 0x0602
#define _WIN32_WINNT 0x0602
#include <iiswebsocket.h>
#undef NTDDI_VERSION
#undef WINVER
#undef _WIN32_WINNT

#define NTDDI_VERSION 0x06010000
#define WINVER 0x0601
#define _WIN32_WINNT 0x0601

#include <httptrace.h>
#include <winhttp.h>

Expand Down

0 comments on commit 5c2906a

Please sign in to comment.