File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ extern "C" {
13
13
s2 : * const :: c_char ,
14
14
n : :: size_t ,
15
15
) -> :: c_int ;
16
+
17
+ // NOTE: For MSVC target, `wmemchr` is only a inline function in `<wchar.h>`
18
+ // header file. We cannot find a way to link to that symbol from Rust.
19
+ pub fn wmemchr (
20
+ cx : * const :: wchar_t ,
21
+ c : :: wchar_t ,
22
+ n : :: size_t ,
23
+ ) -> * mut :: wchar_t ;
16
24
}
17
25
18
26
cfg_if ! {
Original file line number Diff line number Diff line change @@ -378,7 +378,6 @@ extern "C" {
378
378
) -> :: size_t ;
379
379
380
380
pub fn memchr ( cx : * const c_void , c : c_int , n : size_t ) -> * mut c_void ;
381
- pub fn wmemchr ( cx : * const wchar_t , c : wchar_t , n : size_t ) -> * mut wchar_t ;
382
381
pub fn memcmp ( cx : * const c_void , ct : * const c_void , n : size_t ) -> c_int ;
383
382
pub fn memcpy (
384
383
dest : * mut c_void ,
You can’t perform that action at this time.
0 commit comments