We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39f43b5 + 0327cc0 commit 276eaa2Copy full SHA for 276eaa2
src/windows/gnu/mod.rs
@@ -13,6 +13,14 @@ extern "C" {
13
s2: *const ::c_char,
14
n: ::size_t,
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;
24
}
25
26
cfg_if! {
src/windows/mod.rs
@@ -378,7 +378,6 @@ extern "C" {
378
) -> ::size_t;
379
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
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
383
pub fn memcpy(
384
dest: *mut c_void,
0 commit comments