@@ -353,9 +353,6 @@ fn test_apple(target: &str) {
353353 // FIXME: "'__uint128' undeclared" in C
354354 "__uint128" => true ,
355355
356- // `c_char_def` is always public but not always reexported.
357- "c_char_def" => true ,
358-
359356 _ => false ,
360357 }
361358 } ) ;
@@ -603,11 +600,6 @@ fn test_openbsd(target: &str) {
603600 }
604601 } ) ;
605602
606- cfg. skip_type ( move |ty| {
607- // `c_char_def` is always public but not always reexported.
608- ty == "c_char_def"
609- } ) ;
610-
611603 cfg. type_name ( move |ty, is_struct, is_union| {
612604 match ty {
613605 // Just pass all these through, no need for a "struct" prefix
@@ -722,8 +714,6 @@ fn test_windows(target: &str) {
722714 "ssize_t" if !gnu => true ,
723715 // FIXME: The size and alignment of this type are incorrect
724716 "time_t" if gnu && i686 => true ,
725- // `c_char_def` is always public but not always reexported.
726- "c_char_def" => true ,
727717 _ => false ,
728718 } ) ;
729719
@@ -934,8 +924,6 @@ fn test_solarish(target: &str) {
934924
935925 cfg. skip_type ( move |ty| match ty {
936926 "sighandler_t" => true ,
937- // `c_char_def` is always public but not always reexported.
938- "c_char_def" => true ,
939927 _ => false ,
940928 } ) ;
941929
@@ -1236,8 +1224,6 @@ fn test_netbsd(target: &str) {
12361224 match ty {
12371225 // FIXME: sighandler_t is crazy across platforms
12381226 "sighandler_t" => true ,
1239- // `c_char_def` is always public but not always reexported.
1240- "c_char_def" => true ,
12411227 _ => false ,
12421228 }
12431229 } ) ;
@@ -1455,8 +1441,6 @@ fn test_dragonflybsd(target: &str) {
14551441 match ty {
14561442 // sighandler_t is crazy across platforms
14571443 "sighandler_t" => true ,
1458- // `c_char_def` is always public but not always reexported.
1459- "c_char_def" => true ,
14601444 _ => false ,
14611445 }
14621446 } ) ;
@@ -1615,8 +1599,6 @@ fn test_wasi(target: &str) {
16151599 }
16161600 } ) ;
16171601
1618- cfg. skip_type ( |ty| ty == "c_char_def" ) ;
1619-
16201602 // These have a different and internal type in header files and are only
16211603 // used here to generate a pointer to them in bindings so skip these tests.
16221604 cfg. skip_static ( |c| c. starts_with ( "_CLOCK_" ) ) ;
@@ -1865,9 +1847,6 @@ fn test_android(target: &str) {
18651847 // FIXME: "'__uint128' undeclared" in C
18661848 "__uint128" => true ,
18671849
1868- // `c_char_def` is always public but not always reexported.
1869- "c_char_def" => true ,
1870-
18711850 _ => false ,
18721851 }
18731852 } ) ;
@@ -2619,9 +2598,6 @@ fn test_freebsd(target: &str) {
26192598 // `eventfd(2)` and things come with it are added in FreeBSD 13
26202599 "eventfd_t" if Some ( 13 ) > freebsd_ver => true ,
26212600
2622- // `c_char_def` is always public but not always reexported.
2623- "c_char_def" => true ,
2624-
26252601 _ => false ,
26262602 }
26272603 } ) ;
@@ -2938,9 +2914,6 @@ fn test_emscripten(target: &str) {
29382914 // https://github.com/emscripten-core/emscripten/issues/5033
29392915 ty if ty. starts_with ( "epoll" ) => true ,
29402916
2941- // `c_char_def` is always public but not always reexported.
2942- "c_char_def" => true ,
2943-
29442917 // LFS64 types have been removed in Emscripten 3.1.44
29452918 // https://github.com/emscripten-core/emscripten/pull/19812
29462919 t => t. ends_with ( "64" ) || t. ends_with ( "64_t" ) ,
@@ -3217,9 +3190,6 @@ fn test_neutrino(target: &str) {
32173190 // Does not exist in Neutrino
32183191 "locale_t" => true ,
32193192
3220- // `c_char_def` is always public but not always reexported.
3221- "c_char_def" => true ,
3222-
32233193 _ => false ,
32243194 }
32253195 } ) ;
@@ -3383,8 +3353,6 @@ fn test_vxworks(target: &str) {
33833353 // FIXME
33843354 cfg. skip_type ( move |ty| match ty {
33853355 "stat64" | "sighandler_t" | "off64_t" => true ,
3386- // `c_char_def` is always public but not always reexported.
3387- "c_char_def" => true ,
33883356 _ => false ,
33893357 } ) ;
33903358
@@ -3732,9 +3700,6 @@ fn test_linux(target: &str) {
37323700 // FIXME: "'__uint128' undeclared" in C
37333701 "__uint128" => true ,
37343702
3735- // `c_char_def` is always public but not always reexported.
3736- "c_char_def" => true ,
3737-
37383703 t => {
37393704 if musl {
37403705 // LFS64 types have been removed in musl 1.2.4+
@@ -3964,7 +3929,7 @@ fn test_linux(target: &str) {
39643929 }
39653930 // FIXME: Requires >= 5.4 kernel headers
39663931 if name == "PTP_CLOCK_GETCAPS2"
3967- || name == "PTP_ENABLE_PPS2"
3932+ || name == "PTP_ENABLE_PPS2"
39683933 || name == "PTP_EXTTS_REQUEST2"
39693934 || name == "PTP_PEROUT_REQUEST2"
39703935 || name == "PTP_PIN_GETFUNC2"
@@ -4683,8 +4648,6 @@ fn test_linux_like_apis(target: &str) {
46834648 } )
46844649 . skip_type ( move |ty| match ty {
46854650 "Elf64_Phdr" | "Elf32_Phdr" => false ,
4686- // `c_char_def` is always public but not always reexported.
4687- "c_char_def" => true ,
46884651 _ => true ,
46894652 } ) ;
46904653 cfg. generate ( src_hotfix_dir ( ) . join ( "lib.rs" ) , "linux_elf.rs" ) ;
@@ -4920,8 +4883,6 @@ fn test_haiku(target: &str) {
49204883 "pthread_condattr_t" => true ,
49214884 "pthread_mutexattr_t" => true ,
49224885 "pthread_rwlockattr_t" => true ,
4923- // `c_char_def` is always public but not always reexported.
4924- "c_char_def" => true ,
49254886 _ => false ,
49264887 }
49274888 } ) ;
0 commit comments