@@ -364,6 +364,9 @@ fn test_apple(target: &str) {
364364 // FIXME: "'__uint128' undeclared" in C
365365 "__uint128" => true ,
366366
367+ // `c_char_def` is always public but not always reexported.
368+ "c_char_def" => true ,
369+
367370 _ => false ,
368371 }
369372 } ) ;
@@ -758,6 +761,8 @@ fn test_windows(target: &str) {
758761 "ssize_t" if !gnu => true ,
759762 // FIXME: The size and alignment of this type are incorrect
760763 "time_t" if gnu && i686 => true ,
764+ // `c_char_def` is always public but not always reexported.
765+ "c_char_def" => true ,
761766 _ => false ,
762767 } ) ;
763768
@@ -975,6 +980,8 @@ fn test_solarish(target: &str) {
975980
976981 cfg. skip_type ( move |ty| match ty {
977982 "sighandler_t" => true ,
983+ // `c_char_def` is always public but not always reexported.
984+ "c_char_def" => true ,
978985 _ => false ,
979986 } ) ;
980987
@@ -1278,6 +1285,8 @@ fn test_netbsd(target: &str) {
12781285 match ty {
12791286 // FIXME: sighandler_t is crazy across platforms
12801287 "sighandler_t" => true ,
1288+ // `c_char_def` is always public but not always reexported.
1289+ "c_char_def" => true ,
12811290 _ => false ,
12821291 }
12831292 } ) ;
@@ -1497,7 +1506,8 @@ fn test_dragonflybsd(target: &str) {
14971506 match ty {
14981507 // sighandler_t is crazy across platforms
14991508 "sighandler_t" => true ,
1500-
1509+ // `c_char_def` is always public but not always reexported.
1510+ "c_char_def" => true ,
15011511 _ => false ,
15021512 }
15031513 } ) ;
@@ -1659,6 +1669,8 @@ fn test_wasi(target: &str) {
16591669 }
16601670 } ) ;
16611671
1672+ cfg. skip_type ( |ty| ty == "c_char_def" ) ;
1673+
16621674 // These have a different and internal type in header files and are only
16631675 // used here to generate a pointer to them in bindings so skip these tests.
16641676 cfg. skip_static ( |c| c. starts_with ( "_CLOCK_" ) ) ;
@@ -1907,6 +1919,9 @@ fn test_android(target: &str) {
19071919 // FIXME: "'__uint128' undeclared" in C
19081920 "__uint128" => true ,
19091921
1922+ // `c_char_def` is always public but not always reexported.
1923+ "c_char_def" => true ,
1924+
19101925 _ => false ,
19111926 }
19121927 } ) ;
@@ -2669,6 +2684,9 @@ fn test_freebsd(target: &str) {
26692684 // `eventfd(2)` and things come with it are added in FreeBSD 13
26702685 "eventfd_t" if Some ( 13 ) > freebsd_ver => true ,
26712686
2687+ // `c_char_def` is always public but not always reexported.
2688+ "c_char_def" => true ,
2689+
26722690 _ => false ,
26732691 }
26742692 } ) ;
@@ -2989,6 +3007,9 @@ fn test_emscripten(target: &str) {
29893007 // https://github.com/emscripten-core/emscripten/issues/5033
29903008 ty if ty. starts_with ( "epoll" ) => true ,
29913009
3010+ // `c_char_def` is always public but not always reexported.
3011+ "c_char_def" => true ,
3012+
29923013 // LFS64 types have been removed in Emscripten 3.1.44
29933014 // https://github.com/emscripten-core/emscripten/pull/19812
29943015 t => t. ends_with ( "64" ) || t. ends_with ( "64_t" ) ,
@@ -3260,6 +3281,9 @@ fn test_neutrino(target: &str) {
32603281 // Does not exist in Neutrino
32613282 "locale_t" => true ,
32623283
3284+ // `c_char_def` is always public but not always reexported.
3285+ "c_char_def" => true ,
3286+
32633287 _ => false ,
32643288 }
32653289 } ) ;
@@ -3426,6 +3450,8 @@ fn test_vxworks(target: &str) {
34263450 // FIXME
34273451 cfg. skip_type ( move |ty| match ty {
34283452 "stat64" | "sighandler_t" | "off64_t" => true ,
3453+ // `c_char_def` is always public but not always reexported.
3454+ "c_char_def" => true ,
34293455 _ => false ,
34303456 } ) ;
34313457
@@ -3773,6 +3799,9 @@ fn test_linux(target: &str) {
37733799 // FIXME: "'__uint128' undeclared" in C
37743800 "__uint128" => true ,
37753801
3802+ // `c_char_def` is always public but not always reexported.
3803+ "c_char_def" => true ,
3804+
37763805 t => {
37773806 if musl {
37783807 // LFS64 types have been removed in musl 1.2.4+
@@ -4725,6 +4754,8 @@ fn test_linux_like_apis(target: &str) {
47254754 } )
47264755 . skip_type ( move |ty| match ty {
47274756 "Elf64_Phdr" | "Elf32_Phdr" => false ,
4757+ // `c_char_def` is always public but not always reexported.
4758+ "c_char_def" => true ,
47284759 _ => true ,
47294760 } ) ;
47304761 cfg. generate ( src_hotfix_dir ( ) . join ( "lib.rs" ) , "linux_elf.rs" ) ;
@@ -4960,6 +4991,8 @@ fn test_haiku(target: &str) {
49604991 "pthread_condattr_t" => true ,
49614992 "pthread_mutexattr_t" => true ,
49624993 "pthread_rwlockattr_t" => true ,
4994+ // `c_char_def` is always public but not always reexported.
4995+ "c_char_def" => true ,
49634996 _ => false ,
49644997 }
49654998 } ) ;
0 commit comments