Check if ARRAY_SIZE is already defined
Check if ARRAY_SIZE is already defined before defining in the OS
((type *)(((char *)(ptr)) - offsetof(type, field)))
/* Helper to calculate number of elements in array */
+#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) \
(sizeof(array) / sizeof((array)[0]))
-
+#endif
#endif
