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 1d51906 + ff0ca7d commit 9bf70c4Copy full SHA for 9bf70c4
libc-test/semver/macos.txt
@@ -0,0 +1 @@
1
+memmem
src/unix/bsd/apple/mod.rs
@@ -4100,6 +4100,19 @@ extern "C" {
4100
pub fn proc_libversion(major: *mut ::c_int, mintor: *mut ::c_int) -> ::c_int;
4101
}
4102
4103
+cfg_if! {
4104
+ if #[cfg(target_os = "macos")] {
4105
+ extern "C" {
4106
+ pub fn memmem(
4107
+ haystack: *const ::c_void,
4108
+ haystacklen: ::size_t,
4109
+ needle: *const ::c_void,
4110
+ needlelen: ::size_t,
4111
+ ) -> *mut ::c_void;
4112
+ }
4113
4114
+}
4115
+
4116
#[link(name = "iconv")]
4117
extern "C" {
4118
pub fn iconv_open(tocode: *const ::c_char, fromcode: *const ::c_char) -> iconv_t;
0 commit comments