Merge pull request #21876 from 3vilM33pl3/master

Move windows.h to before check for minimum version instead of after
pull/23018/head
Karthik Ravi Shankar 5 years ago committed by GitHub
commit a826ee43a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      include/grpc/impl/codegen/port_platform.h

@ -53,6 +53,8 @@
#define NOMINMAX
#endif /* NOMINMAX */
#include <windows.h>
#ifndef _WIN32_WINNT
#error \
"Please compile grpc with _WIN32_WINNT of at least 0x600 (aka Windows Vista)"
@ -63,8 +65,6 @@
#endif /* _WIN32_WINNT < 0x0600 */
#endif /* defined(_WIN32_WINNT) */
#include <windows.h>
#ifdef GRPC_WIN32_LEAN_AND_MEAN_WAS_NOT_DEFINED
#undef GRPC_WIN32_LEAN_AND_MEAN_WAS_NOT_DEFINED
#undef WIN32_LEAN_AND_MEAN

Loading…
Cancel
Save