nimble/mesh: Do not redefine ARRAY_SIZE

os/util.h has it now, but it may still be needed for ports.
This commit is contained in:
Andrzej Kaczmarek
2019-02-15 11:14:33 +01:00
parent ca2d12baed
commit 6f41813592
+3
View File
@@ -127,7 +127,10 @@ extern "C" {
#define sys_be16_to_cpu(a) be16toh(a)
#define sys_le16_to_cpu(a) le16toh(a)
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif
#define CODE_UNREACHABLE __builtin_unreachable()
#define __ASSERT(code, str) \
do { \