summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-10-09 21:17:53 -0700
committerJosé Fonseca <jfonseca@vmware.com>2013-10-09 21:17:53 -0700
commita922d3413f99ec384ed23324a4cceade8ab57e34 (patch)
tree263b767b0af966869a1b517ac9b4d84cbaaa4140
parent1aef0ef2771d2b83e057e3fe91067fc6e7cb6652 (diff)
util: Fix MinGW build.
_GNU_SOURCE appears to not be used reliably. Use _MSC_VER instead so that MSVC alone is affected.
-rw-r--r--src/gallium/auxiliary/util/u_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index 30053492d8..f5c14ef8d5 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -162,7 +162,7 @@ float log2f(float f)
#endif
-#if __STDC_VERSION__ < 199901L && (!defined(__cplusplus) || !defined(_GNU_SOURCE))
+#if __STDC_VERSION__ < 199901L && (!defined(__cplusplus) || defined(_MSC_VER))
static INLINE long int
lrint(double d)
{