mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 12:14:10 +08:00
c99_math: Don't reimplement lrint and friends on MSVC 2013.
MSVC 2013 declares these functions, both for C and C++ source files. This was caught with MSVC in analyze mode. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
69db422218
commit
fdb507e3d6
@ -82,7 +82,8 @@ roundf(float x)
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
|
||||
#if __STDC_VERSION__ < 199901L && (!defined(__cplusplus) || defined(_MSC_VER))
|
||||
#if (defined(_MSC_VER) && _MSC_VER < 1800) || \
|
||||
(!defined(_MSC_VER) && __STDC_VERSION__ < 199901L && !defined(__cplusplus))
|
||||
static inline long int
|
||||
lrint(double d)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user