File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ fn test_apple(target: &str) {
106
106
"fcntl.h" ,
107
107
"glob.h" ,
108
108
"grp.h" ,
109
+ "iconv.h" ,
109
110
"ifaddrs.h" ,
110
111
"langinfo.h" ,
111
112
"limits.h" ,
@@ -356,6 +357,7 @@ fn test_openbsd(target: &str) {
356
357
"pthread_np.h" ,
357
358
"sys/syscall.h" ,
358
359
"sys/shm.h" ,
360
+ "iconv.h" ,
359
361
}
360
362
361
363
cfg. skip_struct ( move |ty| {
@@ -554,6 +556,7 @@ fn test_redox(target: &str) {
554
556
"errno.h" ,
555
557
"fcntl.h" ,
556
558
"grp.h" ,
559
+ "iconv.h" ,
557
560
"limits.h" ,
558
561
"locale.h" ,
559
562
"netdb.h" ,
@@ -614,6 +617,7 @@ fn test_solarish(target: &str) {
614
617
"fcntl.h" ,
615
618
"glob.h" ,
616
619
"grp.h" ,
620
+ "iconv.h" ,
617
621
"ifaddrs.h" ,
618
622
"langinfo.h" ,
619
623
"limits.h" ,
@@ -889,6 +893,7 @@ fn test_netbsd(target: &str) {
889
893
"sys/event.h" ,
890
894
"sys/quota.h" ,
891
895
"sys/shm.h" ,
896
+ "iconv.h" ,
892
897
}
893
898
894
899
cfg. type_name ( move |ty, is_struct, is_union| {
@@ -1096,6 +1101,7 @@ fn test_dragonflybsd(target: &str) {
1096
1101
"utime.h" ,
1097
1102
"utmpx.h" ,
1098
1103
"wchar.h" ,
1104
+ "iconv.h" ,
1099
1105
}
1100
1106
1101
1107
cfg. type_name ( move |ty, is_struct, is_union| {
@@ -1325,6 +1331,7 @@ fn test_android(target: &str) {
1325
1331
"errno.h" ,
1326
1332
"fcntl.h" ,
1327
1333
"grp.h" ,
1334
+ "iconv.h" ,
1328
1335
"ifaddrs.h" ,
1329
1336
"limits.h" ,
1330
1337
"locale.h" ,
@@ -1377,8 +1384,8 @@ fn test_android(target: &str) {
1377
1384
"sys/syscall.h" ,
1378
1385
"sys/sysinfo.h" ,
1379
1386
"sys/time.h" ,
1380
- "sys/times.h" ,
1381
1387
"sys/timerfd.h" ,
1388
+ "sys/times.h" ,
1382
1389
"sys/types.h" ,
1383
1390
"sys/ucontext.h" ,
1384
1391
"sys/uio.h" ,
@@ -1600,6 +1607,7 @@ fn test_freebsd(target: &str) {
1600
1607
"fcntl.h" ,
1601
1608
"glob.h" ,
1602
1609
"grp.h" ,
1610
+ "iconv.h" ,
1603
1611
"ifaddrs.h" ,
1604
1612
"langinfo.h" ,
1605
1613
"libutil.h" ,
@@ -1906,6 +1914,7 @@ fn test_emscripten(target: &str) {
1906
1914
"fcntl.h" ,
1907
1915
"glob.h" ,
1908
1916
"grp.h" ,
1917
+ "iconv.h" ,
1909
1918
"ifaddrs.h" ,
1910
1919
"langinfo.h" ,
1911
1920
"limits.h" ,
@@ -2270,6 +2279,7 @@ fn test_linux(target: &str) {
2270
2279
"fcntl.h" ,
2271
2280
"glob.h" ,
2272
2281
"grp.h" ,
2282
+ "iconv.h" ,
2273
2283
"ifaddrs.h" ,
2274
2284
"langinfo.h" ,
2275
2285
"limits.h" ,
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ impl ::Clone for DIR {
39
39
}
40
40
}
41
41
pub type locale_t = * mut :: c_void ;
42
+ pub type iconv_t = * mut :: c_void ;
42
43
43
44
s ! {
44
45
pub struct group {
@@ -1542,6 +1543,19 @@ extern "C" {
1542
1543
cmd : :: c_int ,
1543
1544
len : :: off_t ,
1544
1545
) -> :: c_int ;
1546
+
1547
+ pub fn iconv_open (
1548
+ tocode : * const :: c_char ,
1549
+ fromcode : * const :: c_char ,
1550
+ ) -> iconv_t ;
1551
+ pub fn iconv (
1552
+ cd : iconv_t ,
1553
+ inbuf : * mut * mut :: c_char ,
1554
+ inbytesleft : * mut :: size_t ,
1555
+ outbuf : * mut * mut :: c_char ,
1556
+ outbytesleft : * mut :: size_t ,
1557
+ ) -> :: size_t ;
1558
+ pub fn iconv_close ( cd : iconv_t ) -> :: c_int ;
1545
1559
}
1546
1560
1547
1561
cfg_if ! {
You can’t perform that action at this time.
0 commit comments