projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aef0ef
)
util: Fix MinGW build.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 10 Oct 2013 04:17:53 +0000
(21:17 -0700)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 10 Oct 2013 04:17:53 +0000
(21:17 -0700)
_GNU_SOURCE appears to not be used reliably. Use _MSC_VER instead so
that MSVC alone is affected.
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index 30053492d8a9f5d8c5f070bd0e24075d5cdf5d62..f5c14ef8d5619c38d1c5e4966f4fd6516a9a096d 100644
(file)
--- a/
src/gallium/auxiliary/util/u_math.h
+++ b/
src/gallium/auxiliary/util/u_math.h
@@
-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)
{