Mesa (master): mesa: add a dummy definition for fpclassify() if needed
Brian Paul
brianp at kemper.freedesktop.org
Wed May 5 03:19:43 UTC 2010
Module: Mesa
Branch: master
Commit: 791c3395ab2da8a20306bd1195e17040ea31d95b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=791c3395ab2da8a20306bd1195e17040ea31d95b
Author: Brian Paul <brianp at vmware.com>
Date: Tue May 4 21:14:42 2010 -0600
mesa: add a dummy definition for fpclassify() if needed
---
src/mesa/main/querymatrix.c | 10 ++++++++++
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]);
More information about the mesa-commit
mailing list