From: Jim Meyering Date: Sun, 17 May 2009 11:01:37 +0000 (+0200) Subject: maint: define ARRAY_CARDINALITY in system.h X-Git-Tag: v7.5~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b54961b13af78c4805076c6b6739cc282b53c5e;p=thirdparty%2Fcoreutils.git maint: define ARRAY_CARDINALITY in system.h * src/system.h (ARRAY_CARDINALITY): Define if not already defined. --- diff --git a/src/system.h b/src/system.h index 5bc23b32fb..74d86bbeeb 100644 --- a/src/system.h +++ b/src/system.h @@ -702,3 +702,7 @@ io_blksize (struct stat sb) } void usage (int status) ATTRIBUTE_NORETURN; + +#ifndef ARRAY_CARDINALITY +# define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array)) +#endif