The server provides this macro in its headers, so only redefine it where
needed (for the tools)

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 include/wacom-util.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/wacom-util.h b/include/wacom-util.h
index ed42947..e9d860a 100644
--- a/include/wacom-util.h
+++ b/include/wacom-util.h
@@ -22,7 +22,9 @@
 /**
  * Get the number of elements in an array
  */
+#ifndef ARRAY_SIZE
 #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
+#endif
 
 /* to access kernel defined bits */
 #define BIT(x)         (1UL<<((x) & (BITS_PER_LONG - 1)))
-- 
1.7.11.2


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to