File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,7 @@ pub const NRBITS: u32 = 8;
3
3
#[ doc( hidden) ]
4
4
pub const TYPEBITS : u32 = 8 ;
5
5
6
- #[ cfg( target_arch = "mips" ) ]
7
- mod consts {
8
- #[ doc( hidden) ]
9
- pub const NONE : u8 = 1 ;
10
- #[ doc( hidden) ]
11
- pub const READ : u8 = 2 ;
12
- #[ doc( hidden) ]
13
- pub const WRITE : u8 = 4 ;
14
- #[ doc( hidden) ]
15
- pub const SIZEBITS : u8 = 13 ;
16
- #[ doc( hidden) ]
17
- pub const DIRBITS : u8 = 3 ;
18
- }
19
- #[ cfg( target_arch = "powerpc" ) ]
6
+ #[ cfg( any( target_arch = "mips" , target_arch = "powerpc" ) ) ]
20
7
mod consts {
21
8
#[ doc( hidden) ]
22
9
pub const NONE : u8 = 1 ;
@@ -241,12 +228,12 @@ pub struct ff_effect {
241
228
pub direction : u16 ,
242
229
pub trigger : ff_trigger ,
243
230
pub replay : ff_replay ,
244
- pub u : Union_Unnamed16 ,
231
+ pub u : ff_effect_data ,
245
232
}
246
233
247
234
#[ repr( C ) ]
248
235
#[ derive( Copy , Clone ) ]
249
- pub struct Union_Unnamed16 {
236
+ pub struct ff_effect_data {
250
237
pub _bindgen_data_ : [ u64 ; 4usize ] ,
251
238
}
252
239
impl Union_Unnamed16 {
@@ -272,7 +259,7 @@ impl Union_Unnamed16 {
272
259
:: std:: mem:: transmute ( raw. offset ( 0 ) )
273
260
}
274
261
}
275
- impl :: std:: default:: Default for Union_Unnamed16 {
262
+ impl :: std:: default:: Default for ff_effect_data {
276
263
fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
277
264
}
278
265
You can’t perform that action at this time.
0 commit comments