summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/include/pipe/p_util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_util.h b/src/gallium/include/pipe/p_util.h
index 77783b11a8..43d94ec4ba 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