summaryrefslogtreecommitdiff
path: root/src/mesa/main/querymatrix.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-08-12 17:37:00 -0700
committerVinson Lee <vlee@vmware.com>2010-08-12 17:37:00 -0700
commit06928ba3c343eee7098442fe387eaacd4933c401 (patch)
tree27424a43d3f3b7dabb2863a9ae82e9a3dc3a0e13 /src/mesa/main/querymatrix.c
parent527ac905f6a1cb525ba701df4ca505e1baea6378 (diff)
mesa: fpclassify is available with MinGW.
This patch fixes the MinGW build.
Diffstat (limited to 'src/mesa/main/querymatrix.c')
-rw-r--r--src/mesa/main/querymatrix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c
index 6f62415ba8..32aaa79f7f 100644
--- a/src/mesa/main/querymatrix.c
+++ b/src/mesa/main/querymatrix.c
@@ -36,9 +36,9 @@
#define INT_TO_FIXED(x) ((GLfixed) ((x) << 16))
#define FLOAT_TO_FIXED(x) ((GLfixed) ((x) * 65536.0))
-#if defined(WIN32) || defined(_WIN32_WCE)
+#if defined(_MSC_VER)
/* Oddly, the fpclassify() function doesn't exist in such a form
- * on Windows. This is an implementation using slightly different
+ * on MSVC. This is an implementation using slightly different
* lower-level Windows functions.
*/
#include <float.h>
@@ -72,7 +72,7 @@ fpclassify(double x)
#elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \
defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \
- (defined(__sun) && defined(__C99FEATURES__))
+ (defined(__sun) && defined(__C99FEATURES__)) || defined(__MINGW32__)
/* fpclassify is available. */