move ARRAY_SIZE() definition to utils.h

This commit is contained in:
Harald Welte
2015-11-08 21:31:48 +01:00
parent 30a53f823a
commit f64f68871e
2 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
#pragma once
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))