@@ -353,6 +353,9 @@ 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+
356359 _ => false ,
357360 }
358361 } ) ;
@@ -714,6 +717,8 @@ fn test_windows(target: &str) {
714717 "ssize_t" if !gnu => true ,
715718 // FIXME: The size and alignment of this type are incorrect
716719 "time_t" if gnu && i686 => true ,
720+ // `c_char_def` is always public but not always reexported.
721+ "c_char_def" => true ,
717722 _ => false ,
718723 } ) ;
719724
@@ -924,6 +929,8 @@ fn test_solarish(target: &str) {
924929
925930 cfg. skip_type ( move |ty| match ty {
926931 "sighandler_t" => true ,
932+ // `c_char_def` is always public but not always reexported.
933+ "c_char_def" => true ,
927934 _ => false ,
928935 } ) ;
929936
@@ -1224,6 +1231,8 @@ fn test_netbsd(target: &str) {
12241231 match ty {
12251232 // FIXME: sighandler_t is crazy across platforms
12261233 "sighandler_t" => true ,
1234+ // `c_char_def` is always public but not always reexported.
1235+ "c_char_def" => true ,
12271236 _ => false ,
12281237 }
12291238 } ) ;
@@ -1441,7 +1450,8 @@ fn test_dragonflybsd(target: &str) {
14411450 match ty {
14421451 // sighandler_t is crazy across platforms
14431452 "sighandler_t" => true ,
1444-
1453+ // `c_char_def` is always public but not always reexported.
1454+ "c_char_def" => true ,
14451455 _ => false ,
14461456 }
14471457 } ) ;
@@ -1600,6 +1610,8 @@ fn test_wasi(target: &str) {
16001610 }
16011611 } ) ;
16021612
1613+ cfg. skip_type ( |ty| ty == "c_char_def" ) ;
1614+
16031615 // These have a different and internal type in header files and are only
16041616 // used here to generate a pointer to them in bindings so skip these tests.
16051617 cfg. skip_static ( |c| c. starts_with ( "_CLOCK_" ) ) ;
@@ -1848,6 +1860,9 @@ fn test_android(target: &str) {
18481860 // FIXME: "'__uint128' undeclared" in C
18491861 "__uint128" => true ,
18501862
1863+ // `c_char_def` is always public but not always reexported.
1864+ "c_char_def" => true ,
1865+
18511866 _ => false ,
18521867 }
18531868 } ) ;
@@ -2599,6 +2614,9 @@ fn test_freebsd(target: &str) {
25992614 // `eventfd(2)` and things come with it are added in FreeBSD 13
26002615 "eventfd_t" if Some ( 13 ) > freebsd_ver => true ,
26012616
2617+ // `c_char_def` is always public but not always reexported.
2618+ "c_char_def" => true ,
2619+
26022620 _ => false ,
26032621 }
26042622 } ) ;
@@ -2915,6 +2933,9 @@ fn test_emscripten(target: &str) {
29152933 // https://github.com/emscripten-core/emscripten/issues/5033
29162934 ty if ty. starts_with ( "epoll" ) => true ,
29172935
2936+ // `c_char_def` is always public but not always reexported.
2937+ "c_char_def" => true ,
2938+
29182939 // LFS64 types have been removed in Emscripten 3.1.44
29192940 // https://github.com/emscripten-core/emscripten/pull/19812
29202941 t => t. ends_with ( "64" ) || t. ends_with ( "64_t" ) ,
@@ -3191,6 +3212,9 @@ fn test_neutrino(target: &str) {
31913212 // Does not exist in Neutrino
31923213 "locale_t" => true ,
31933214
3215+ // `c_char_def` is always public but not always reexported.
3216+ "c_char_def" => true ,
3217+
31943218 _ => false ,
31953219 }
31963220 } ) ;
@@ -3354,6 +3378,8 @@ fn test_vxworks(target: &str) {
33543378 // FIXME
33553379 cfg. skip_type ( move |ty| match ty {
33563380 "stat64" | "sighandler_t" | "off64_t" => true ,
3381+ // `c_char_def` is always public but not always reexported.
3382+ "c_char_def" => true ,
33573383 _ => false ,
33583384 } ) ;
33593385
@@ -3701,6 +3727,9 @@ fn test_linux(target: &str) {
37013727 // FIXME: "'__uint128' undeclared" in C
37023728 "__uint128" => true ,
37033729
3730+ // `c_char_def` is always public but not always reexported.
3731+ "c_char_def" => true ,
3732+
37043733 t => {
37053734 if musl {
37063735 // LFS64 types have been removed in musl 1.2.4+
@@ -4649,6 +4678,8 @@ fn test_linux_like_apis(target: &str) {
46494678 } )
46504679 . skip_type ( move |ty| match ty {
46514680 "Elf64_Phdr" | "Elf32_Phdr" => false ,
4681+ // `c_char_def` is always public but not always reexported.
4682+ "c_char_def" => true ,
46524683 _ => true ,
46534684 } ) ;
46544685 cfg. generate ( src_hotfix_dir ( ) . join ( "lib.rs" ) , "linux_elf.rs" ) ;
@@ -4884,6 +4915,8 @@ fn test_haiku(target: &str) {
48844915 "pthread_condattr_t" => true ,
48854916 "pthread_mutexattr_t" => true ,
48864917 "pthread_rwlockattr_t" => true ,
4918+ // `c_char_def` is always public but not always reexported.
4919+ "c_char_def" => true ,
48874920 _ => false ,
48884921 }
48894922 } ) ;
0 commit comments