summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
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 /src/gallium/auxiliary/util
parent1aef0ef2771d2b83e057e3fe91067fc6e7cb6652 (diff)
downloadexternal_mesa3d-a922d3413f99ec384ed23324a4cceade8ab57e34.zip
external_mesa3d-a922d3413f99ec384ed23324a4cceade8ab57e34.tar.gz
external_mesa3d-a922d3413f99ec384ed23324a4cceade8ab57e34.tar.bz2
util: Fix MinGW build.
_GNU_SOURCE appears to not be used reliably. Use _MSC_VER instead so that MSVC alone is affected.
Diffstat (limited to 'src/gallium/auxiliary/util')
-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 3005349..f5c14ef 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)
{