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:
@@ -142,7 +142,11 @@ static inline int64_t llabs( int64_t i ) { return i >= 0? i: -i; }
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// MinGW provides us with this function already
|
// 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 )
|
inline long int lrintf( float f )
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|||||||
Reference in New Issue
Block a user