[Mesa-dev] [PATCH] gallium/aux: Avoid redefining MAX

Alexander von Gluck kallisti05 at gmail.com
Tue Dec 9 13:21:17 PST 2014


* Can be redefined on some platforms through u_debug.h
---
 src/gallium/auxiliary/cso_cache/cso_hash.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/auxiliary/cso_cache/cso_hash.c
b/src/gallium/auxiliary/cso_cache/cso_hash.c
index e04d8ed..2a3f361 100644
--- a/src/gallium/auxiliary/cso_cache/cso_hash.c
+++ b/src/gallium/auxiliary/cso_cache/cso_hash.c
@@ -35,7 +35,9 @@

 #include "cso_hash.h"

+#ifndef MAX
 #define MAX(a, b) ((a > b) ? (a) : (b))
+#endif

 static const int MinNumBits = 4;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141209/edeb144c/attachment.html>


More information about the mesa-dev mailing list