ARRAY_SIZE dont redefine
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
b064fb5bc9
commit
5f0dc8f4e6
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