Mesa (master): fpclassify is available on C99-compliant Solaris releases too

Brian Paul brianp at kemper.freedesktop.org
Wed May 19 14:33:20 UTC 2010


Module: Mesa
Branch: master
Commit: beb5e1c807bbe90adc7490a043de623d7a3e6e4e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=beb5e1c807bbe90adc7490a043de623d7a3e6e4e

Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Tue May 18 09:28:37 2010 -0700

fpclassify is available on C99-compliant Solaris releases too

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Signed-off-by: Brian Paul <brianp at vmware.com>

---

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

diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c
index a6b04e9..ca292aa 100644
--- a/src/mesa/main/querymatrix.c
+++ b/src/mesa/main/querymatrix.c
@@ -70,7 +70,8 @@ fpclassify(double x)
     }
 }
 
-#elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__)
+#elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \
+     (defined(__sun) && defined(__C99FEATURES__))
 
 /* fpclassify is available. */
 




More information about the mesa-commit mailing list