mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 18:38:11 +02:00
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:
parent
1aef0ef277
commit
a922d3413f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue