From 3dc38b0c51f8b98ea550b5a3842c87884f10fa8d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 18 Dec 2013 09:57:00 -0800 Subject: std: Stop reexporting the contents of 'mod consts' This prevents usage of the win32 utf-16 helper functions from outside of libstd. Closes #9053 --- src/libstd/os.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 43a9390bfb6..8f2f2190885 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -43,8 +43,6 @@ use to_str; use unstable::finally::Finally; use sync::atomics::{AtomicInt, INIT_ATOMIC_INT, SeqCst}; -pub use os::consts::*; - /// Delegates to the libc close() function, returning the same return value. pub fn close(fd: c_int) -> c_int { unsafe { @@ -334,7 +332,7 @@ pub fn pipe() -> Pipe { /// Returns the proper dll filename for the given basename of a file. pub fn dll_filename(base: &str) -> ~str { - format!("{}{}{}", DLL_PREFIX, base, DLL_SUFFIX) + format!("{}{}{}", consts::DLL_PREFIX, base, consts::DLL_SUFFIX) } /// Optionally returns the filesystem path to the current executable which is -- cgit 1.4.1-3-g733a5