summaryrefslogtreecommitdiff
path: root/hidapi-sys/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'hidapi-sys/build.rs')
-rw-r--r--hidapi-sys/build.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/hidapi-sys/build.rs b/hidapi-sys/build.rs
index 6ad9197..d910944 100644
--- a/hidapi-sys/build.rs
+++ b/hidapi-sys/build.rs
@@ -38,7 +38,7 @@ fn fetch() -> io::Result<()> {
#[cfg(target_os = "linux")]
fn build() -> io::Result<()> {
- let mut config = gcc::Config::new();
+ let mut config = gcc::Build::new();
config.file(source().join("libusb/hid.c"));
config.include(source().join("hidapi"));
@@ -54,7 +54,7 @@ fn build() -> io::Result<()> {
#[cfg(target_os = "macos")]
fn build() -> io::Result<()> {
- let mut config = gcc::Config::new();
+ let mut config = gcc::Build::new();
config.file(source().join("libusb/hid.c"));
config.include(source().join("hidapi"));
@@ -70,7 +70,7 @@ fn build() -> io::Result<()> {
#[cfg(target_os = "windows")]
fn build() -> io::Result<()> {
- let mut config = gcc::Config::new();
+ let mut config = gcc::Build::new();
config.file(source().join("windows/hid.c"));
config.include(source().join("hidapi"));