Skip to content

Commit

Permalink
Add aligned_realloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper-Bekkers committed Feb 22, 2024
1 parent 3d0b15b commit d67af79
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 @@ -149,6 +149,7 @@ accept
access
aligned_malloc
aligned_free
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 @@ -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"]
Expand Down

0 comments on commit d67af79

Please sign in to comment.