Skip to content

Commit

Permalink
Add aligned_realloc
Browse files Browse the repository at this point in the history
(backport <#3592>)
(cherry picked from commit d67af79)
  • Loading branch information
Jasper-Bekkers authored and tgross35 committed Nov 17, 2024
1 parent 18e8007 commit 7c7d9c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ accept
access
aligned_free
aligned_malloc
aligned_realloc
atexit
atof
atoi
Expand Down
3 changes: 3 additions & 0 deletions src/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,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"]
Expand Down

0 comments on commit 7c7d9c4

Please sign in to comment.