From d3f31b24dc0bd4695c580846898f85651d0fcbea Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 31 Jul 2023 15:08:37 -0700 Subject: [PATCH] Add lgamma_r and lgammaf_r to MinGW --- src/lib.rs | 2 +- src/math.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 73cb3d50..dd81608f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,7 +51,7 @@ pub mod int; all(target_arch = "mips", target_os = "none"), target_os = "xous", all(target_vendor = "fortanix", target_env = "sgx"), - target_env = "msvc" + target_os = "windows" ))] pub mod math; pub mod mem; diff --git a/src/math.rs b/src/math.rs index 4e255ca1..e0f7d8e8 100644 --- a/src/math.rs +++ b/src/math.rs @@ -96,7 +96,7 @@ no_mangle! { all(target_arch = "x86_64", target_os = "uefi"), all(target_arch = "xtensa", target_os = "none"), all(target_vendor = "fortanix", target_env = "sgx"), - target_env = "msvc" + target_os = "windows" ))] intrinsics! { pub extern "C" fn lgamma_r(x: f64, s: &mut i32) -> f64 {