From: Brian Paul Date: Wed, 5 May 2010 03:14:42 +0000 (-0600) Subject: mesa: add a dummy definition for fpclassify() if needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=791c3395ab2da8a20306bd1195e17040ea31d95b;p=mesa.git mesa: add a dummy definition for fpclassify() if needed --- diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c index 82b6fe7ab9f..47e2934f217 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]);