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