@@ -124,7 +124,7 @@ const MIN_ALIGN: uint = 8;
124
124
target_arch = "aarch64" ) ) ]
125
125
const MIN_ALIGN : uint = 16 ;
126
126
127
- #[ cfg( external_funcs) ]
127
+ #[ cfg( feature = " external_funcs" ) ]
128
128
mod imp {
129
129
extern {
130
130
fn rust_allocate ( size : uint , align : uint ) -> * mut u8 ;
@@ -169,14 +169,14 @@ mod imp {
169
169
}
170
170
}
171
171
172
- #[ cfg( external_crate) ]
172
+ #[ cfg( feature = " external_crate" ) ]
173
173
mod imp {
174
174
extern crate external;
175
175
pub use self :: external:: { allocate, deallocate, reallocate_inplace, reallocate} ;
176
176
pub use self :: external:: { usable_size, stats_print} ;
177
177
}
178
178
179
- #[ cfg( all( not( external_funcs) , not( external_crate) , jemalloc) ) ]
179
+ #[ cfg( all( not( feature = " external_funcs" ) , not( feature = " external_crate" ) , jemalloc) ) ]
180
180
mod imp {
181
181
use core:: option:: Option ;
182
182
use core:: option:: Option :: None ;
@@ -253,7 +253,7 @@ mod imp {
253
253
}
254
254
}
255
255
256
- #[ cfg( all( not( external_funcs) , not( external_crate) , not( jemalloc) , unix) ) ]
256
+ #[ cfg( all( not( feature = " external_funcs" ) , not( feature = " external_crate" ) , not( jemalloc) , unix) ) ]
257
257
mod imp {
258
258
use core:: cmp;
259
259
use core:: ptr;
@@ -314,7 +314,7 @@ mod imp {
314
314
pub fn stats_print ( ) { }
315
315
}
316
316
317
- #[ cfg( all( not( external_funcs) , not( external_crate) , not( jemalloc) , windows) ) ]
317
+ #[ cfg( all( not( feature = " external_funcs" ) , not( feature = " external_crate" ) , not( jemalloc) , windows) ) ]
318
318
mod imp {
319
319
use libc:: { c_void, size_t} ;
320
320
use libc;
0 commit comments