From 32b1303947005330ef5f785cbbf72d48de43ac9b Mon Sep 17 00:00:00 2001 From: kellda <59569234+kellda@users.noreply.github.com> Date: Sat, 25 Jul 2020 09:16:13 +0000 Subject: [PATCH] Add "_aligned_malloc" on windows platform --- src/windows/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/windows/mod.rs b/src/windows/mod.rs index 2770cf90ef565..971cd11bca6b7 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -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" {