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" {
1313 s2 : * const :: c_char ,
1414 n : :: size_t ,
1515 ) -> :: 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 ;
1624}
1725
1826cfg_if ! {
Original file line number Diff line number Diff line change @@ -378,7 +378,6 @@ extern "C" {
378378 ) -> :: size_t ;
379379
380380 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 ;
382381 pub fn memcmp ( cx : * const c_void , ct : * const c_void , n : size_t ) -> c_int ;
383382 pub fn memcpy (
384383 dest : * mut c_void ,
You can’t perform that action at this time.
0 commit comments