Merge pull request #1271 from stevepentland/wasm-windows-fix

Include guards around os-specific string elements.
This commit is contained in:
Kevin K 2018-06-12 09:53:22 -04:00
parent abd7be3362
commit 4ebede6d9a

View file

@ -1,8 +1,11 @@
// Std
use std::ffi::{OsStr, OsString};
use std::io::{self, BufWriter, Write};
#[cfg(all(feature = "debug", not(target_arch = "wasm32")))]
#[cfg(all(feature = "debug", not(any(target_os = "windows", target_arch = "wasm32"))))]
use std::os::unix::ffi::OsStrExt;
#[cfg(all(feature = "debug", any(target_os = "windows", target_arch = "wasm32")))]
use osstringext::OsStrExt3;
use std::path::PathBuf;
use std::slice::Iter;
use std::iter::Peekable;
use std::mem;