ARRAY_SIZE dont redefine
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
7201057d28
commit
57513b7d62
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue