From 09fb1e2d6e845eceac810baef5890c17ff15e25e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 5 Mar 2003 11:06:18 +0000 Subject: (ARRAY_SIZE): Define it. --- lib/physmem.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/physmem.c b/lib/physmem.c index 4770b0a13..7aa547425 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 () -- cgit v1.2.3-70-g09d2