From d67af7940ae59e9df58924f0e66bd0908d2b91cb Mon Sep 17 00:00:00 2001 From: Jasper Bekkers Date: Thu, 22 Feb 2024 14:34:28 +0100 Subject: [PATCH] Add aligned_realloc --- libc-test/semver/windows.txt | 1 + src/windows/mod.rs | 3 +++ 2 files changed, 4 insertions(+) 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"]