diff --git a/libc-test/semver/windows.txt b/libc-test/semver/windows.txt index 1f66d622eb5c3..5f1c97b8e4c68 100644 --- a/libc-test/semver/windows.txt +++ b/libc-test/semver/windows.txt @@ -148,6 +148,7 @@ abs accept access aligned_malloc +aligned_free atexit atof atoi diff --git a/src/windows/mod.rs b/src/windows/mod.rs index ad0dc77d23193..1b5de0bacb4a0 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -492,6 +492,8 @@ extern "C" { pub fn wsetlocale(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; + #[link_name = "_aligned_free"] + pub fn aligned_free(ptr: *mut ::c_void); } extern "system" {