Skip to content

Commit 04804c7

Browse files
authored
Merge pull request #1839 from kellda/_aligned_malloc
Add "_aligned_malloc" on windows platform
2 parents d706b4d + 32b1303 commit 04804c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/windows/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ extern "C" {
529529
category: ::c_int,
530530
locale: *const wchar_t,
531531
) -> *mut wchar_t;
532+
#[link_name = "_aligned_malloc"]
533+
pub fn aligned_malloc(size: size_t, alignment: size_t) -> *mut c_void;
532534
}
533535

534536
extern "system" {

0 commit comments

Comments
 (0)