Mesa (master): util: Fix MinGW build.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Oct 10 04:19:13 UTC 2013
Module: Mesa
Branch: master
Commit: a922d3413f99ec384ed23324a4cceade8ab57e34
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a922d3413f99ec384ed23324a4cceade8ab57e34
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Oct 9 21:17:53 2013 -0700
util: Fix MinGW build.
_GNU_SOURCE appears to not be used reliably. Use _MSC_VER instead so
that MSVC alone is affected.
---
src/gallium/auxiliary/util/u_math.h | 2 +-
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)
{
More information about the mesa-commit
mailing list