summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-09-24 12:36:11 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-09-24 13:12:50 +0100
commit622bdecabd73167d2f2f3aff0e223a8c64433f99 (patch)
tree652db8d7b2d5afb11d53dbd5e13503d718364b43
parent1bf0651d9b58a5c150fcf37016ae1bda425bb05a (diff)
downloadexternal_mesa3d-622bdecabd73167d2f2f3aff0e223a8c64433f99.zip
external_mesa3d-622bdecabd73167d2f2f3aff0e223a8c64433f99.tar.gz
external_mesa3d-622bdecabd73167d2f2f3aff0e223a8c64433f99.tar.bz2
mesa: Fix missing finite symbol error on Windows.
Caused by some weird logic regarding the __WIN32__ define which made the finite definition dependent on the header include order.
-rw-r--r--src/mesa/main/compiler.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index 9319505..380663e 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -107,8 +107,7 @@ extern "C" {
/**
* finite macro.
*/
-#if defined(_WIN32) && !defined(__WIN32__) && !defined(__CYGWIN__) && !defined(BUILD_FOR_SNAP)
-# define __WIN32__
+#if defined(_MSC_VER)
# define finite _finite
#elif defined(__WATCOMC__)
# define finite _finite