File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4677,11 +4677,16 @@ cfg_if! {
4677
4677
const __DARWIN_ALIGNBYTES32: usize = :: mem:: size_of:: <u32 >( ) - 1 ;
4678
4678
p + __DARWIN_ALIGNBYTES32 & !__DARWIN_ALIGNBYTES32
4679
4679
}
4680
- } else if # [ cfg ( libc_const_size_of ) ] {
4680
+ } else {
4681
4681
fn __DARWIN_ALIGN32( p: usize ) -> usize {
4682
- const __DARWIN_ALIGNBYTES32: usize = :: mem:: size_of:: <u32 >( ) - 1 ;
4682
+ let __DARWIN_ALIGNBYTES32: usize = :: mem:: size_of:: <u32 >( ) - 1 ;
4683
4683
p + __DARWIN_ALIGNBYTES32 & !__DARWIN_ALIGNBYTES32
4684
4684
}
4685
+ }
4686
+ }
4687
+
4688
+ cfg_if ! {
4689
+ if #[ cfg( libc_const_size_of) ] {
4685
4690
pub const THREAD_EXTENDED_POLICY_COUNT : mach_msg_type_number_t =
4686
4691
( :: mem:: size_of:: <thread_extended_policy_data_t>( ) / :: mem:: size_of:: <integer_t>( ) )
4687
4692
as mach_msg_type_number_t;
You can’t perform that action at this time.
0 commit comments