From: Keith Whitwell Date: Mon, 21 Apr 2008 13:19:15 +0000 (+0100) Subject: util: work around freaky win32 math.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76a3590046d74c923d9837f82ece1587224b9a41;p=mesa.git util: work around freaky win32 math.h --- diff --git a/src/gallium/include/pipe/p_util.h b/src/gallium/include/pipe/p_util.h index 77783b11a88..43d94ec4ba8 100644 --- a/src/gallium/include/pipe/p_util.h +++ b/src/gallium/include/pipe/p_util.h @@ -405,6 +405,8 @@ extern void pipe_copy_rect(ubyte * dst, unsigned cpp, unsigned dst_pitch, #ifdef WIN32 +#if !defined(_INC_MATH) || !defined(__cplusplus) + static INLINE float cosf( float f ) { return (float) cos( (double) f ); @@ -444,7 +446,7 @@ static INLINE float logf( float f ) { return (float) cos( (double) f ); } - +#endif /* _INC_MATH */ #endif