Merge pull request #274 from Arcterus/util-libc

common: make libc reference in util look for the libc in util
This commit is contained in:
Oly Mi 2014-06-19 07:54:00 +04:00
commit 898e6082f6

View file

@ -32,7 +32,7 @@ macro_rules! crash(
($exitcode:expr, $($args:expr),+) => ({ ($exitcode:expr, $($args:expr),+) => ({
safe_write!(&mut ::std::io::stderr(), "{}: error: ", ::NAME); safe_write!(&mut ::std::io::stderr(), "{}: error: ", ::NAME);
safe_writeln!(&mut ::std::io::stderr(), $($args),+); safe_writeln!(&mut ::std::io::stderr(), $($args),+);
unsafe { self::libc::exit($exitcode as self::libc::c_int); } unsafe { ::util::libc::exit($exitcode as ::util::libc::c_int); }
}) })
) )
@ -40,7 +40,7 @@ macro_rules! crash(
#[macro_export] #[macro_export]
macro_rules! exit( macro_rules! exit(
($exitcode:expr) => ({ ($exitcode:expr) => ({
unsafe { self::libc::exit($exitcode); } unsafe { ::util::libc::exit($exitcode); }
}) })
) )