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