Whamcloud - gitweb
LU-8036 utils: remove ARRAY_SIZE() define from lustreapi.h
[fs/lustre-release.git] / lustre / utils / req-layout.c
index 3a975e7..74997cb 100644 (file)
 #include <lustre_req_layout.h>
 #include <lustre/lustreapi.h>
 
+#ifndef ARRAY_SIZE
+# define ARRAY_SIZE(a) ((sizeof(a)) / (sizeof((a)[0])))
+#endif /* !ARRAY_SIZE */
+
 #define lustre_swab_generic_32s NULL
 #define lustre_swab_lu_seq_range NULL
 #define lustre_swab_mdt_body NULL