util: work around freaky win32 math.h
This commit is contained in:
@@ -405,6 +405,8 @@ extern void pipe_copy_rect(ubyte * dst, unsigned cpp, unsigned dst_pitch,
|
|||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
||||||
|
#if !defined(_INC_MATH) || !defined(__cplusplus)
|
||||||
|
|
||||||
static INLINE float cosf( float f )
|
static INLINE float cosf( float f )
|
||||||
{
|
{
|
||||||
return (float) cos( (double) f );
|
return (float) cos( (double) f );
|
||||||
@@ -444,7 +446,7 @@ static INLINE float logf( float f )
|
|||||||
{
|
{
|
||||||
return (float) cos( (double) f );
|
return (float) cos( (double) f );
|
||||||
}
|
}
|
||||||
|
#endif /* _INC_MATH */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user