Skip to content
Snippets Groups Projects
Unverified Commit 276eaa2d authored by Yuki Okushi's avatar Yuki Okushi Committed by GitHub
Browse files

Merge pull request #1698 from lzutao/non-msvc-wmemchr

Remove MSVC's wmemchr declaration
parents 39f43b5b 0327cc0b
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,14 @@ extern "C" { ...@@ -13,6 +13,14 @@ extern "C" {
s2: *const ::c_char, s2: *const ::c_char,
n: ::size_t, n: ::size_t,
) -> ::c_int; ) -> ::c_int;
// NOTE: For MSVC target, `wmemchr` is only a inline function in `<wchar.h>`
// header file. We cannot find a way to link to that symbol from Rust.
pub fn wmemchr(
cx: *const ::wchar_t,
c: ::wchar_t,
n: ::size_t,
) -> *mut ::wchar_t;
} }
cfg_if! { cfg_if! {
......
...@@ -378,7 +378,6 @@ extern "C" { ...@@ -378,7 +378,6 @@ extern "C" {
) -> ::size_t; ) -> ::size_t;
pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void; pub fn memchr(cx: *const c_void, c: c_int, n: size_t) -> *mut c_void;
pub fn wmemchr(cx: *const wchar_t, c: wchar_t, n: size_t) -> *mut wchar_t;
pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int; pub fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int;
pub fn memcpy( pub fn memcpy(
dest: *mut c_void, dest: *mut c_void,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment