diff options
author | José Fonseca <[email protected]> | 2013-10-07 17:09:46 -0700 |
---|---|---|
committer | José Fonseca <[email protected]> | 2013-10-10 00:31:53 +0100 |
commit | dbc1f3677c1deb32358a6a53f0ad3638a78c7c4f (patch) | |
tree | 6f9c480a0815a731b5d7304de125a6bdee0c2c33 | |
parent | edde6c77bd1cb91f6f7c42010919e6f406f507ce (diff) |
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.
-rw-r--r-- | 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 478a4aa4d17..30053492d8a 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) { |