@@ -511,6 +511,9 @@ pub mod types {
511
511
target_arch = "mips" ,
512
512
target_arch = "mipsel" ) ) ]
513
513
pub mod arch {
514
+ #[ cfg( any( target_arch = "x86" ,
515
+ target_arch = "mips" ,
516
+ target_arch = "mipsel" ) ) ]
514
517
pub mod c95 {
515
518
pub type c_char = i8 ;
516
519
pub type c_schar = i8 ;
@@ -530,6 +533,26 @@ pub mod types {
530
533
pub type suseconds_t = i32 ;
531
534
pub type wchar_t = i32 ;
532
535
}
536
+ #[ cfg( target_arch = "arm" ) ]
537
+ pub mod c95 {
538
+ pub type c_char = u8 ;
539
+ pub type c_schar = i8 ;
540
+ pub type c_uchar = u8 ;
541
+ pub type c_short = i16 ;
542
+ pub type c_ushort = u16 ;
543
+ pub type c_int = i32 ;
544
+ pub type c_uint = u32 ;
545
+ pub type c_long = i32 ;
546
+ pub type c_ulong = u32 ;
547
+ pub type c_float = f32 ;
548
+ pub type c_double = f64 ;
549
+ pub type size_t = u32 ;
550
+ pub type ptrdiff_t = i32 ;
551
+ pub type clock_t = i32 ;
552
+ pub type time_t = i32 ;
553
+ pub type suseconds_t = i32 ;
554
+ pub type wchar_t = i32 ;
555
+ }
533
556
pub mod c99 {
534
557
pub type c_longlong = i64 ;
535
558
pub type c_ulonglong = u64 ;
@@ -1804,6 +1827,7 @@ pub mod types {
1804
1827
1805
1828
#[ cfg( any( target_arch = "arm" , target_arch = "x86" ) ) ]
1806
1829
pub mod arch {
1830
+ #[ cfg( target_arch = "x86" ) ]
1807
1831
pub mod c95 {
1808
1832
pub type c_char = i8 ;
1809
1833
pub type c_schar = i8 ;
@@ -1823,6 +1847,26 @@ pub mod types {
1823
1847
pub type suseconds_t = i32 ;
1824
1848
pub type wchar_t = i32 ;
1825
1849
}
1850
+ #[ cfg( target_arch = "arm" ) ]
1851
+ pub mod c95 {
1852
+ pub type c_char = u8 ;
1853
+ pub type c_schar = i8 ;
1854
+ pub type c_uchar = u8 ;
1855
+ pub type c_short = i16 ;
1856
+ pub type c_ushort = u16 ;
1857
+ pub type c_int = i32 ;
1858
+ pub type c_uint = u32 ;
1859
+ pub type c_long = i32 ;
1860
+ pub type c_ulong = u32 ;
1861
+ pub type c_float = f32 ;
1862
+ pub type c_double = f64 ;
1863
+ pub type size_t = u32 ;
1864
+ pub type ptrdiff_t = i32 ;
1865
+ pub type clock_t = u32 ;
1866
+ pub type time_t = i32 ;
1867
+ pub type suseconds_t = i32 ;
1868
+ pub type wchar_t = i32 ;
1869
+ }
1826
1870
pub mod c99 {
1827
1871
pub type c_longlong = i64 ;
1828
1872
pub type c_ulonglong = u64 ;
0 commit comments