From 3d90f8074aabe37a912e73392942cc0b99bcde9a Mon Sep 17 00:00:00 2001 From: JohnColket <76828213+JohnColket@users.noreply.github.com> Date: Wed, 17 Mar 2021 11:50:24 -0400 Subject: [PATCH] Audacity fails to compile with VS2019 16.9.0 (lrint, lrintf) (#750) --- src/float_cast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/float_cast.h b/src/float_cast.h index b7370c255..ee07d358e 100644 --- a/src/float_cast.h +++ b/src/float_cast.h @@ -56,6 +56,7 @@ /* Win32 doesn't seem to have these functions. ** Therefore implement inline versions of these functions here. */ +#if _MSC_VER < 1928 __inline long int lrint (double flt) { int intgr; @@ -79,7 +80,7 @@ return intgr ; } - +#endif __inline long long int llrint (double flt) { long long int intgr;