From f57e65a8811c3e7b80eb93ea51f5892be34176e3 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Mon, 29 Jun 2015 16:12:44 +0100 Subject: [PATCH] Define these, in case they are still unfound on x64 --- src/float_cast/float_cast.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/float_cast/float_cast.h b/src/float_cast/float_cast.h index 0e862d0..fdeedbb 100644 --- a/src/float_cast/float_cast.h +++ b/src/float_cast/float_cast.h @@ -38,7 +38,13 @@ ** long int lrint (double x) ; */ -#if ((defined (WIN32) || defined (_WIN32)) && !defined (_WIN64)) +#if (defined (_WIN64)) + +#include +__inline long int lrint(double flt) { return (long int)flt; } +__inline long int lrintf(float flt) { return (long int)flt; } + +#elif (defined (WIN32) || defined (_WIN32)) #include