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