From: Jim Meyering Date: Wed, 5 Mar 2003 11:06:18 +0000 (+0000) Subject: (ARRAY_SIZE): Define it. X-Git-Tag: v4.5.9~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09fb1e2d6e845eceac810baef5890c17ff15e25e;p=thirdparty%2Fcoreutils.git (ARRAY_SIZE): Define it. --- diff --git a/lib/physmem.c b/lib/physmem.c index 4770b0a134..7aa547425a 100644 --- a/lib/physmem.c +++ b/lib/physmem.c @@ -78,6 +78,8 @@ typedef WINBOOL (WINAPI *PFN_MS_EX) (lMEMORYSTATUSEX*); #include "physmem.h" +#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) + /* Return the total amount of physical memory. */ double physmem_total ()