summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-09-24 12:36:11 +0100
committerJosé Fonseca <[email protected]>2009-09-24 13:12:50 +0100
commit622bdecabd73167d2f2f3aff0e223a8c64433f99 (patch)
tree652db8d7b2d5afb11d53dbd5e13503d718364b43 /src/mesa/main
parent1bf0651d9b58a5c150fcf37016ae1bda425bb05a (diff)
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.
Diffstat (limited to 'src/mesa/main')
-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 9319505a75d..380663ec971 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