util: Fix MinGW build.

_GNU_SOURCE appears to not be used reliably.  Use _MSC_VER instead so
that MSVC alone is affected.
This commit is contained in:
José Fonseca 2013-10-09 21:17:53 -07:00
parent 1aef0ef277
commit a922d3413f

View file

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