Fixed compiling issue with lrintf() on VC++ 2013

Added a preprocessing condition which don't implement lrintf() with VC++
>= 2013 because it is in the SDK
This commit is contained in:
Suisse00
2014-02-16 20:48:05 -05:00
parent 8151afc602
commit ae3a056b2d
+5 -1
View File
@@ -142,7 +142,11 @@ static inline int64_t llabs( int64_t i ) { return i >= 0? i: -i; }
#endif
// MinGW provides us with this function already
#if !defined(__MINGW32__)
#if !defined(__MINGW32__) \
/* VC++ 2013 added the support of lrintf */\
&& (!defined(_MSC_VER) || _MSC_VER < 1800)
inline long int lrintf( float f )
{
int retval;