Fix build on mingw64 gcc compiler
This commit is contained in:
parent
901058a62e
commit
48c7535d28
4
build.rs
4
build.rs
|
@ -28,6 +28,10 @@ fn get_config() -> PathBuf {
|
|||
fn print_config() {
|
||||
println!("cargo:rustc-link-lib=static=winbridge");
|
||||
println!("cargo:rustc-link-lib=dylib=user32");
|
||||
#[cfg(target_env = "gnu")]
|
||||
println!("cargo:rustc-link-lib=dylib=gdiplus");
|
||||
#[cfg(target_env = "gnu")]
|
||||
println!("cargo:rustc-link-lib=dylib=stdc++");
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
|
|
|
@ -27,7 +27,15 @@
|
|||
|
||||
#define UNICODE
|
||||
|
||||
#ifdef __MINGW32__
|
||||
# ifndef WINVER
|
||||
# define WINVER 0x0606
|
||||
# endif
|
||||
# define STRSAFE_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
#include <winuser.h>
|
||||
#include <strsafe.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user