Skip to content

Commit 404d402

Browse files
Add conditional compilation to lib.rs for iconv-sys
1 parent 4cfc291 commit 404d402

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

crates/iconv-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ fn main() {
7676
.expect("Couldn't write bindings!");
7777
}
7878

79+
// no-op for not windows as not needed
7980
#[cfg(not(windows))]
8081
fn main() {
8182
()

crates/iconv-sys/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
#![allow(non_camel_case_types)]
66
#![allow(non_snake_case)]
77

8+
// Only needed for Windows
9+
#[cfg(windows)]
810
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

0 commit comments

Comments
 (0)