mesa: Use fpclassify for GL_OES_query_matrix on OpenBSD and NetBSD.
authorChia-I Wu <olv@lunarg.com>
Wed, 30 Jun 2010 04:58:36 +0000 (12:58 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 30 Jun 2010 05:01:10 +0000 (13:01 +0800)
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.

src/mesa/main/querymatrix.c

index a0969f6..6f62415 100644 (file)
@@ -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. */