Mesa (glsl2): mesa: Recent versions of MSVC define the single precision functions already.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat Aug 14 12:11:16 UTC 2010


Module: Mesa
Branch: glsl2
Commit: 8881b0fe43540c44c1b6ba95d51651fc6b612ffb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8881b0fe43540c44c1b6ba95d51651fc6b612ffb

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sat Aug 14 13:10:24 2010 +0100

mesa: Recent versions of MSVC define the single precision functions already.

---

 src/mesa/main/imports.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 42eba33..a439370 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -121,7 +121,8 @@ typedef union { GLfloat f; GLint i; } fi_type;
  */
 /*@{*/
 #if (_XOPEN_SOURCE < 600) && !defined(_ISOC99_SOURCE) \
-   && (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L))
+   && (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)) \
+   && (!defined(_MSC_VER) || (_MSC_VER < 1400))
 #define acosf(f) ((float) acos(f))
 #define asinf(f) ((float) asin(f))
 #define atan2f(x,y) ((float) atan2(x,y))




More information about the mesa-commit mailing list