From: José Fonseca Date: Thu, 10 Oct 2013 04:17:53 +0000 (-0700) Subject: util: Fix MinGW build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a922d3413f99ec384ed23324a4cceade8ab57e34;p=mesa.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 30053492d8a..f5c14ef8d56 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) {