@@ -111,12 +111,12 @@ unsafe fn exchange_free(ptr: *mut u8, size: uint, align: uint) {
111
111
// The minimum alignment guaranteed by the architecture. This value is used to
112
112
// add fast paths for low alignment values. In practice, the alignment is a
113
113
// 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" ) ) ]
117
117
static 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" ) ) ]
120
120
static MIN_ALIGN : uint = 16 ;
121
121
122
122
#[ cfg( jemalloc) ]
@@ -146,7 +146,7 @@ mod imp {
146
146
}
147
147
148
148
// -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" ) ) ) ]
150
150
#[ link( name = "pthread" ) ]
151
151
extern { }
152
152
@@ -206,7 +206,7 @@ mod imp {
206
206
}
207
207
}
208
208
209
- #[ cfg( not( jemalloc) , unix) ]
209
+ #[ cfg( all ( not( jemalloc) , unix) ) ]
210
210
mod imp {
211
211
use core:: cmp;
212
212
use core:: ptr;
@@ -268,7 +268,7 @@ mod imp {
268
268
pub fn stats_print ( ) { }
269
269
}
270
270
271
- #[ cfg( not( jemalloc) , windows) ]
271
+ #[ cfg( all ( not( jemalloc) , windows) ) ]
272
272
mod imp {
273
273
use libc:: { c_void, size_t} ;
274
274
use libc;
0 commit comments