projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b064fb5
)
ARRAY_SIZE dont redefine
author
Andy Green
<andy@warmcat.com>
Mon, 6 Jun 2016 12:34:33 +0000
(20:34 +0800)
committer
Andy Green
<andy@warmcat.com>
Mon, 6 Jun 2016 12:34:33 +0000
(20:34 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/libwebsockets.h
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.h
b/lib/libwebsockets.h
index 0affce07d14bb2f3626fd05ca98e7d8f6aab9fe2..328c7c27507875dabd4f0d220000c673d747ff79 100644
(file)
--- a/
lib/libwebsockets.h
+++ b/
lib/libwebsockets.h
@@
-311,7
+311,9
@@
LWS_VISIBLE LWS_EXTERN void lwsl_hexdump(void *buf, size_t len);
struct lws;
+#ifndef ARRAY_SIZE
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+#endif
/* api change list for user code to test against */