fpclassify is available on C99-compliant Solaris releases too
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 18 May 2010 16:28:37 +0000 (09:28 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 19 May 2010 14:29:12 +0000 (08:29 -0600)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/querymatrix.c

index a6b04e95519108b9da9fac918a5b30769641c79e..ca292aa0e89408136f46bf4496d98f86856395d6 100644 (file)
@@ -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. */