diff --git a/libc-test/semver/windows.txt b/libc-test/semver/windows.txt index fa3fb8efecd38..ad0a60d4719cd 100644 --- a/libc-test/semver/windows.txt +++ b/libc-test/semver/windows.txt @@ -149,6 +149,7 @@ accept access aligned_malloc aligned_free +aligned_realloc atexit atof atoi diff --git a/src/windows/mod.rs b/src/windows/mod.rs index df4f8047e22ad..3aa810ee68563 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -518,6 +518,9 @@ extern "C" { pub fn aligned_malloc(size: size_t, alignment: size_t) -> *mut c_void; #[link_name = "_aligned_free"] pub fn aligned_free(ptr: *mut ::c_void); + #[link_name = "_aligned_realloc"] + pub fn aligned_realloc(memblock: *mut ::c_void, size: size_t, alignment: size_t) + -> *mut c_void; #[link_name = "_putenv"] pub fn putenv(envstring: *const ::c_char) -> ::c_int; #[link_name = "_wputenv"]