about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-06 05:41:38 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-06 16:21:12 +0530
commitdfc92656e5551d6fd9b163da7a9bb2107d51ecce (patch)
treebf2885bb4545a0dbe7dd3da7939329215ee8c0be /src/liballoc
parent8e4c00b939b0c7586571d33c34bf9445fef6aa3b (diff)
parent8fded29586041ac8877bc35dadc60bdf873459a0 (diff)
downloadrust-dfc92656e5551d6fd9b163da7a9bb2107d51ecce.tar.gz
rust-dfc92656e5551d6fd9b163da7a9bb2107d51ecce.zip
Rollup merge of #21966 - scialex:fix-extern, r=alexcrichton
 Also added test for it.

Fixes #21928
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 99423349020..d99a5e2cc6d 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -73,7 +73,9 @@
 #![feature(unboxed_closures)]
 #![feature(core)]
 #![feature(hash)]
-#![feature(libc)]
+#![cfg_attr(all(not(feature = "external_funcs"), not(feature = "external_crate")),
+            feature(libc))]
+
 
 #[macro_use]
 extern crate core;