summaryrefslogtreecommitdiff
path: root/src/mesa/main/querymatrix.c
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-06-30 12:58:36 +0800
committerChia-I Wu <olv@lunarg.com>2010-06-30 13:01:10 +0800
commit2f0b01826dbae60fed60c0d744d42a1a4cde4a84 (patch)
treefbe01d7148e8d827cf8860a5d1ff268027fb2b87 /src/mesa/main/querymatrix.c
parent0d68d01347383a8878c9678706cc3bd212b54bbd (diff)
mesa: Use fpclassify for GL_OES_query_matrix on OpenBSD and NetBSD.
Patch from Brad Smith <brad@comstyle.com> The attached patch allows the GL_OES_query_matrix function to use the systems fpclassify() for OpenBSD and NetBSD.
Diffstat (limited to 'src/mesa/main/querymatrix.c')
-rw-r--r--src/mesa/main/querymatrix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c
index a0969f6b9f..6f62415ba8 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. */