From 3537b5823f74fa3d266600d65fc41560455b589e Mon Sep 17 00:00:00 2001 From: liushuyu Date: Mon, 9 Mar 2020 12:58:57 -0600 Subject: [PATCH] build.rs: fix build on Windows with gcc --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 07cdb42..3cb666d 100644 --- a/build.rs +++ b/build.rs @@ -46,6 +46,8 @@ fn handle_binary(config: &BaseAttributes) { cc::Build::new() .cpp(true) + .define("_WIN32_WINNT", Some("0x0600")) + .define("WINVER", Some("0x0600")) .file("src/native/interop.cpp") .compile("interop"); }