From: José Fonseca Date: Mon, 2 Jun 2008 10:46:05 +0000 (+0900) Subject: gallium: Hopefully fix the cosf/sinf/etc. conditional compolation logic for good. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b50043ea9e20c15a1be6735e533f5cc25a253ca;p=mesa.git gallium: Hopefully fix the cosf/sinf/etc. conditional compolation logic for good. --- diff --git a/src/gallium/include/pipe/p_util.h b/src/gallium/include/pipe/p_util.h index 9497eeeec9b..cb3cd264e91 100644 --- a/src/gallium/include/pipe/p_util.h +++ b/src/gallium/include/pipe/p_util.h @@ -410,8 +410,7 @@ extern void pipe_copy_rect(ubyte * dst, unsigned cpp, unsigned dst_pitch, -#if !defined(_MSC_VER) || _MSC_VER < 0x800 -#if !defined(_INC_MATH) || !defined(__cplusplus) +#if defined(_MSC_VER) && !defined(__cplusplus) static INLINE float cosf( float f ) { @@ -453,7 +452,6 @@ static INLINE float logf( float f ) return (float) cos( (double) f ); } -#endif /* _INC_MATH */ #endif