From: José Fonseca Date: Thu, 10 Oct 2013 04:17:53 +0000 (-0700) Subject: util: Fix MinGW build. X-Git-Tag: upstream/10.0.5~922 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a922d3413f99ec384ed23324a4cceade8ab57e34;p=platform%2Fupstream%2Fmesa.git util: Fix MinGW build. _GNU_SOURCE appears to not be used reliably. Use _MSC_VER instead so that MSVC alone is affected. --- 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) {