gallium/util: Define isfinite and isnan for MSVC.
Define isfinite and isnan to _finite and _isnan respectively for MSVC. Those macros are needed by st/vega.
This commit is contained in:
@@ -168,6 +168,9 @@ static INLINE float logf( float f )
|
||||
#undef logf
|
||||
#define logf(x) ((float)log((double)(x)))
|
||||
#endif /* logf */
|
||||
|
||||
#define isfinite(x) _finite((double)(x))
|
||||
#define isnan(x) _isnan((double)(x))
|
||||
#endif
|
||||
|
||||
static INLINE double log2( double x )
|
||||
|
||||
Reference in New Issue
Block a user