From 2f0b01826dbae60fed60c0d744d42a1a4cde4a84 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 30 Jun 2010 12:58:36 +0800 Subject: [PATCH] mesa: Use fpclassify for GL_OES_query_matrix on OpenBSD and NetBSD. Patch from Brad Smith The attached patch allows the GL_OES_query_matrix function to use the systems fpclassify() for OpenBSD and NetBSD. --- src/mesa/main/querymatrix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c index a0969f6b9ff..6f62415ba8c 100644 --- a/src/mesa/main/querymatrix.c +++ b/src/mesa/main/querymatrix.c @@ -71,7 +71,8 @@ fpclassify(double x) } #elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \ - defined(__DragonFly__) || (defined(__sun) && defined(__C99FEATURES__)) + defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \ + (defined(__sun) && defined(__C99FEATURES__)) /* fpclassify is available. */ -- 2.30.2