summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-04 21:14:42 -0600
committerBrian Paul <brianp@vmware.com>2010-05-04 21:14:42 -0600
commit791c3395ab2da8a20306bd1195e17040ea31d95b (patch)
tree4f69be7ee8e708a486c0c80785213560ca8527b6
parentbef9460dcdbda9e3f4caa55871d21cd42a0984ed (diff)
downloadexternal_mesa3d-791c3395ab2da8a20306bd1195e17040ea31d95b.zip
external_mesa3d-791c3395ab2da8a20306bd1195e17040ea31d95b.tar.gz
external_mesa3d-791c3395ab2da8a20306bd1195e17040ea31d95b.tar.bz2
mesa: add a dummy definition for fpclassify() if needed
-rw-r--r--src/mesa/main/querymatrix.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c
index 82b6fe7..47e2934 100644
--- a/src/mesa/main/querymatrix.c
+++ b/src/mesa/main/querymatrix.c
@@ -69,6 +69,16 @@ fpclassify(double x)
return FP_NAN;
}
}
+
+#elif !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 600
+
+enum {FP_NAN, FP_INFINITE, FP_ZERO, FP_SUBNORMAL, FP_NORMAL}
+fpclassify(double x)
+{
+ /* XXX do something better someday */
+ return FP_NORMAL;
+}
+
#endif
extern GLbitfield GL_APIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);