summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-05-31 18:07:39 +0900
committerJosé Fonseca <[email protected]>2008-05-31 18:55:40 +0900
commit054189e87abcd399aadb449d13b2e331c060e65f (patch)
treea15c82fea7f343bfb78b6cefba147b90d24bb44f /src
parenta9d6b1afa5b548a98c2b95db50236c4139d9f569 (diff)
gallium: MSVC 8.0 already defines the cosf, sinf, etc.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/include/pipe/p_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/include/pipe/p_util.h b/src/gallium/include/pipe/p_util.h
index 597354ca96c..fe4ba3a689d 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,
-#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