Skip to content

Commit 526ef0e

Browse files
Add aligned_realloc
1 parent 3d0b15b commit 526ef0e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/windows.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ accept
149149
access
150150
aligned_malloc
151151
aligned_free
152+
aligned_realloc
152153
atexit
153154
atof
154155
atoi

src/windows/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ extern "C" {
518518
pub fn aligned_malloc(size: size_t, alignment: size_t) -> *mut c_void;
519519
#[link_name = "_aligned_free"]
520520
pub fn aligned_free(ptr: *mut ::c_void);
521+
#[link_name = "_aligned_realloc"]
522+
pub fn aligned_realloc(memblock: *mut ::c_void, size: size_t, alignment: size_t) -> *mut c_void;
521523
#[link_name = "_putenv"]
522524
pub fn putenv(envstring: *const ::c_char) -> ::c_int;
523525
#[link_name = "_wputenv"]

0 commit comments

Comments
 (0)