@@ -353,9 +353,6 @@ fn test_apple(target: &str) {
353
353
// FIXME: "'__uint128' undeclared" in C
354
354
"__uint128" => true ,
355
355
356
- // `c_char_def` is always public but not always reexported.
357
- "c_char_def" => true ,
358
-
359
356
_ => false ,
360
357
}
361
358
} ) ;
@@ -603,11 +600,6 @@ fn test_openbsd(target: &str) {
603
600
}
604
601
} ) ;
605
602
606
- cfg. skip_type ( move |ty| {
607
- // `c_char_def` is always public but not always reexported.
608
- ty == "c_char_def"
609
- } ) ;
610
-
611
603
cfg. type_name ( move |ty, is_struct, is_union| {
612
604
match ty {
613
605
// Just pass all these through, no need for a "struct" prefix
@@ -722,8 +714,6 @@ fn test_windows(target: &str) {
722
714
"ssize_t" if !gnu => true ,
723
715
// FIXME: The size and alignment of this type are incorrect
724
716
"time_t" if gnu && i686 => true ,
725
- // `c_char_def` is always public but not always reexported.
726
- "c_char_def" => true ,
727
717
_ => false ,
728
718
} ) ;
729
719
@@ -934,8 +924,6 @@ fn test_solarish(target: &str) {
934
924
935
925
cfg. skip_type ( move |ty| match ty {
936
926
"sighandler_t" => true ,
937
- // `c_char_def` is always public but not always reexported.
938
- "c_char_def" => true ,
939
927
_ => false ,
940
928
} ) ;
941
929
@@ -1236,8 +1224,6 @@ fn test_netbsd(target: &str) {
1236
1224
match ty {
1237
1225
// FIXME: sighandler_t is crazy across platforms
1238
1226
"sighandler_t" => true ,
1239
- // `c_char_def` is always public but not always reexported.
1240
- "c_char_def" => true ,
1241
1227
_ => false ,
1242
1228
}
1243
1229
} ) ;
@@ -1455,8 +1441,6 @@ fn test_dragonflybsd(target: &str) {
1455
1441
match ty {
1456
1442
// sighandler_t is crazy across platforms
1457
1443
"sighandler_t" => true ,
1458
- // `c_char_def` is always public but not always reexported.
1459
- "c_char_def" => true ,
1460
1444
_ => false ,
1461
1445
}
1462
1446
} ) ;
@@ -1615,8 +1599,6 @@ fn test_wasi(target: &str) {
1615
1599
}
1616
1600
} ) ;
1617
1601
1618
- cfg. skip_type ( |ty| ty == "c_char_def" ) ;
1619
-
1620
1602
// These have a different and internal type in header files and are only
1621
1603
// used here to generate a pointer to them in bindings so skip these tests.
1622
1604
cfg. skip_static ( |c| c. starts_with ( "_CLOCK_" ) ) ;
@@ -1865,9 +1847,6 @@ fn test_android(target: &str) {
1865
1847
// FIXME: "'__uint128' undeclared" in C
1866
1848
"__uint128" => true ,
1867
1849
1868
- // `c_char_def` is always public but not always reexported.
1869
- "c_char_def" => true ,
1870
-
1871
1850
_ => false ,
1872
1851
}
1873
1852
} ) ;
@@ -2619,9 +2598,6 @@ fn test_freebsd(target: &str) {
2619
2598
// `eventfd(2)` and things come with it are added in FreeBSD 13
2620
2599
"eventfd_t" if Some ( 13 ) > freebsd_ver => true ,
2621
2600
2622
- // `c_char_def` is always public but not always reexported.
2623
- "c_char_def" => true ,
2624
-
2625
2601
_ => false ,
2626
2602
}
2627
2603
} ) ;
@@ -2938,9 +2914,6 @@ fn test_emscripten(target: &str) {
2938
2914
// https://github.com/emscripten-core/emscripten/issues/5033
2939
2915
ty if ty. starts_with ( "epoll" ) => true ,
2940
2916
2941
- // `c_char_def` is always public but not always reexported.
2942
- "c_char_def" => true ,
2943
-
2944
2917
// LFS64 types have been removed in Emscripten 3.1.44
2945
2918
// https://github.com/emscripten-core/emscripten/pull/19812
2946
2919
t => t. ends_with ( "64" ) || t. ends_with ( "64_t" ) ,
@@ -3217,9 +3190,6 @@ fn test_neutrino(target: &str) {
3217
3190
// Does not exist in Neutrino
3218
3191
"locale_t" => true ,
3219
3192
3220
- // `c_char_def` is always public but not always reexported.
3221
- "c_char_def" => true ,
3222
-
3223
3193
_ => false ,
3224
3194
}
3225
3195
} ) ;
@@ -3383,8 +3353,6 @@ fn test_vxworks(target: &str) {
3383
3353
// FIXME
3384
3354
cfg. skip_type ( move |ty| match ty {
3385
3355
"stat64" | "sighandler_t" | "off64_t" => true ,
3386
- // `c_char_def` is always public but not always reexported.
3387
- "c_char_def" => true ,
3388
3356
_ => false ,
3389
3357
} ) ;
3390
3358
@@ -3732,9 +3700,6 @@ fn test_linux(target: &str) {
3732
3700
// FIXME: "'__uint128' undeclared" in C
3733
3701
"__uint128" => true ,
3734
3702
3735
- // `c_char_def` is always public but not always reexported.
3736
- "c_char_def" => true ,
3737
-
3738
3703
t => {
3739
3704
if musl {
3740
3705
// LFS64 types have been removed in musl 1.2.4+
@@ -3964,7 +3929,7 @@ fn test_linux(target: &str) {
3964
3929
}
3965
3930
// FIXME: Requires >= 5.4 kernel headers
3966
3931
if name == "PTP_CLOCK_GETCAPS2"
3967
- || name == "PTP_ENABLE_PPS2"
3932
+ || name == "PTP_ENABLE_PPS2"
3968
3933
|| name == "PTP_EXTTS_REQUEST2"
3969
3934
|| name == "PTP_PEROUT_REQUEST2"
3970
3935
|| name == "PTP_PIN_GETFUNC2"
@@ -4683,8 +4648,6 @@ fn test_linux_like_apis(target: &str) {
4683
4648
} )
4684
4649
. skip_type ( move |ty| match ty {
4685
4650
"Elf64_Phdr" | "Elf32_Phdr" => false ,
4686
- // `c_char_def` is always public but not always reexported.
4687
- "c_char_def" => true ,
4688
4651
_ => true ,
4689
4652
} ) ;
4690
4653
cfg. generate ( src_hotfix_dir ( ) . join ( "lib.rs" ) , "linux_elf.rs" ) ;
@@ -4920,8 +4883,6 @@ fn test_haiku(target: &str) {
4920
4883
"pthread_condattr_t" => true ,
4921
4884
"pthread_mutexattr_t" => true ,
4922
4885
"pthread_rwlockattr_t" => true ,
4923
- // `c_char_def` is always public but not always reexported.
4924
- "c_char_def" => true ,
4925
4886
_ => false ,
4926
4887
}
4927
4888
} ) ;
0 commit comments