gallium: MSVC 8.0 already defines the cosf, sinf, etc.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 31 May 2008 09:07:39 +0000 (18:07 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 31 May 2008 09:55:40 +0000 (18:55 +0900)
src/gallium/include/pipe/p_util.h

index 597354c..fe4ba3a 100644 (file)
@@ -410,8 +410,7 @@ extern void pipe_copy_rect(ubyte * dst, unsigned cpp, unsigned dst_pitch,
 
 
 
-#ifdef WIN32
-
+#if !defined(_MSC_VER) && _MSC_VER < 0x800
 #if !defined(_INC_MATH) || !defined(__cplusplus)
 
 static INLINE float cosf( float f ) 
@@ -453,6 +452,7 @@ static INLINE float logf( float f )
 {
    return (float) cos( (double) f );
 }
+
 #endif  /* _INC_MATH */
 #endif