Skip to content

Commit 7c7d9c4

Browse files
Jasper-Bekkerstgross35
authored andcommitted
Add aligned_realloc
(backport <rust-lang#3592>) (cherry picked from commit d67af79)
1 parent 18e8007 commit 7c7d9c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/windows.txt

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ accept
150150
access
151151
aligned_free
152152
aligned_malloc
153+
aligned_realloc
153154
atexit
154155
atof
155156
atoi

src/windows/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@ extern "C" {
520520
pub fn aligned_malloc(size: size_t, alignment: size_t) -> *mut c_void;
521521
#[link_name = "_aligned_free"]
522522
pub fn aligned_free(ptr: *mut ::c_void);
523+
#[link_name = "_aligned_realloc"]
524+
pub fn aligned_realloc(memblock: *mut ::c_void, size: size_t, alignment: size_t)
525+
-> *mut c_void;
523526
#[link_name = "_putenv"]
524527
pub fn putenv(envstring: *const ::c_char) -> ::c_int;
525528
#[link_name = "_wputenv"]

0 commit comments

Comments
 (0)