summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-10-07 17:09:46 -0700
committerJosé Fonseca <jfonseca@vmware.com>2013-10-10 00:31:53 +0100
commitdbc1f3677c1deb32358a6a53f0ad3638a78c7c4f (patch)
tree6f9c480a0815a731b5d7304de125a6bdee0c2c33 /src/gallium/auxiliary/util
parentedde6c77bd1cb91f6f7c42010919e6f406f507ce (diff)
downloadexternal_mesa3d-dbc1f3677c1deb32358a6a53f0ad3638a78c7c4f.zip
external_mesa3d-dbc1f3677c1deb32358a6a53f0ad3638a78c7c4f.tar.gz
external_mesa3d-dbc1f3677c1deb32358a6a53f0ad3638a78c7c4f.tar.bz2
util/u_math: Fix C++ include of u_math.h on MSVC.
GNU C++ compiler declares the C99 lrint, etc. when _GNU_SOURCE is defined, but MSVC does not. Trivial.
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 478a4aa..3005349 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)
+#if __STDC_VERSION__ < 199901L && (!defined(__cplusplus) || !defined(_GNU_SOURCE))
static INLINE long int
lrint(double d)
{