@@ -111,12 +111,12 @@ unsafe fn exchange_free(ptr: *mut u8, size: uint, align: uint) {
111111// The minimum alignment guaranteed by the architecture. This value is used to
112112// add fast paths for low alignment values. In practice, the alignment is a
113113// constant at the call site and the branch will be optimized out.
114- #[ cfg( target_arch = "arm" ) ]
115- # [ cfg ( target_arch = "mips" ) ]
116- # [ cfg ( target_arch = "mipsel" ) ]
114+ #[ cfg( any ( target_arch = "arm" ,
115+ target_arch = "mips" ,
116+ target_arch = "mipsel" ) ) ]
117117static MIN_ALIGN : uint = 8 ;
118- #[ cfg( target_arch = "x86" ) ]
119- # [ cfg ( target_arch = "x86_64" ) ]
118+ #[ cfg( any ( target_arch = "x86" ,
119+ target_arch = "x86_64" ) ) ]
120120static MIN_ALIGN : uint = 16 ;
121121
122122#[ cfg( jemalloc) ]
@@ -146,7 +146,7 @@ mod imp {
146146 }
147147
148148 // -lpthread needs to occur after -ljemalloc, the earlier argument isn't enough
149- #[ cfg( not( windows) , not( target_os = "android" ) ) ]
149+ #[ cfg( all ( not( windows) , not( target_os = "android" ) ) ) ]
150150 #[ link( name = "pthread" ) ]
151151 extern { }
152152
@@ -206,7 +206,7 @@ mod imp {
206206 }
207207}
208208
209- #[ cfg( not( jemalloc) , unix) ]
209+ #[ cfg( all ( not( jemalloc) , unix) ) ]
210210mod imp {
211211 use core:: cmp;
212212 use core:: ptr;
@@ -268,7 +268,7 @@ mod imp {
268268 pub fn stats_print ( ) { }
269269}
270270
271- #[ cfg( not( jemalloc) , windows) ]
271+ #[ cfg( all ( not( jemalloc) , windows) ) ]
272272mod imp {
273273 use libc:: { c_void, size_t} ;
274274 use libc;
0 commit comments