]> jfr.im git - solanum.git/blobdiff - include/ircd_defs.h
gcc7 fixes: make fallthrough explicit
[solanum.git] / include / ircd_defs.h
index 2736a93e1d1f91b918c6ea925c00c99937265e42..00bd55463af0ca17d08cf29d4c81477be53bce7a 100644 (file)
@@ -64,6 +64,8 @@
 #define MIN(a, b)      ((a) < (b) ? (a) : (b))
 #endif
 
+#define ARRAY_SIZE(array)       (sizeof(array) / sizeof((array)[0]))
+
 #define HOSTLEN         63     /* Length of hostname.  Updated to         */
                                /* comply with RFC1123                     */