about summary refs log tree commit diff
path: root/src/libstd/sys/windows/mod.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-11-01 13:04:03 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-11-09 07:56:44 -0800
commit5c3fe111d4a6e72f0461320f5166bcd6aaf2f37f (patch)
tree48f0b9a3b4a7d115bd9bf29916adc437fed669fd /src/libstd/sys/windows/mod.rs
parent348930eb4e75ee9ce42e783fe9942c8eb5165bc1 (diff)
downloadrust-5c3fe111d4a6e72f0461320f5166bcd6aaf2f37f.tar.gz
rust-5c3fe111d4a6e72f0461320f5166bcd6aaf2f37f.zip
std: Avoid use of `libc` in portable modules
This commit removes usage of the `libc` crate in "portable" modules like
those at the top level and `sys_common`. Instead common types like `*mut
u8` or `u32` are used instead of `*mut c_void` or `c_int` as well as
switching to platform-specific functions like `sys::strlen` instead of
`libc::strlen`.
Diffstat (limited to 'src/libstd/sys/windows/mod.rs')
-rw-r--r--src/libstd/sys/windows/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/mod.rs b/src/libstd/sys/windows/mod.rs
index 180b55a66e3..0d12ecf8fe3 100644
--- a/src/libstd/sys/windows/mod.rs
+++ b/src/libstd/sys/windows/mod.rs
@@ -17,6 +17,7 @@ use os::windows::ffi::{OsStrExt, OsStringExt};
 use path::PathBuf;
 use time::Duration;
 
+pub use libc::strlen;
 pub use self::rand::hashmap_random_keys;
 
 #[macro_use] pub mod compat;