projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69db422
)
c99_math: Don't reimplement lrint and friends on MSVC 2013.
author
Jose Fonseca
<jfonseca@vmware.com>
Tue, 24 Mar 2015 13:16:24 +0000
(13:16 +0000)
committer
Jose Fonseca
<jfonseca@vmware.com>
Wed, 25 Mar 2015 10:42:41 +0000
(10:42 +0000)
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>
include/c99_math.h
patch
|
blob
|
history
diff --git
a/include/c99_math.h
b/include/c99_math.h
index 5b01d53a83af269094b601d30a9155ffb27c432f..ee0dd105e4989952a1d778bc69cf737ea06fc6e4 100644
(file)
--- a/
include/c99_math.h
+++ b/
include/c99_math.h
@@
-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)
{