build.rs: fix build on Windows with gcc

This commit is contained in:
liushuyu 2020-03-09 12:58:57 -06:00 committed by James
parent 5ff1486f69
commit 3537b5823f

View file

@ -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");
}