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.
This commit is contained in:
José Fonseca 2013-10-07 17:09:46 -07:00
parent edde6c77bd
commit dbc1f3677c

View file

@ -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)
{