Skip to content

Commit

Permalink
Merge pull request rust-lang#1839 from kellda/_aligned_malloc
Browse files Browse the repository at this point in the history
Add "_aligned_malloc" on windows platform
  • Loading branch information
JohnTitor authored Jul 26, 2020
2 parents d706b4d + 32b1303 commit 04804c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ extern "C" {
category: ::c_int,
locale: *const wchar_t,
) -> *mut wchar_t;
#[link_name = "_aligned_malloc"]
pub fn aligned_malloc(size: size_t, alignment: size_t) -> *mut c_void;
}

extern "system" {
Expand Down

0 comments on commit 04804c7

Please sign in to comment.