mesa: add a dummy definition for fpclassify() if needed
authorBrian Paul <brianp@vmware.com>
Wed, 5 May 2010 03:14:42 +0000 (21:14 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 5 May 2010 03:14:42 +0000 (21:14 -0600)
src/mesa/main/querymatrix.c

index 82b6fe7ab9f69dfe7dab2cbd07fc8af33daa8d54..47e2934f2177e3e01f8653c47c16bbeefd407cef 100644 (file)
@@ -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]);