]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(ARRAY_SIZE): Define it.
authorJim Meyering <jim@meyering.net>
Wed, 5 Mar 2003 11:06:18 +0000 (11:06 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Mar 2003 11:06:18 +0000 (11:06 +0000)
lib/physmem.c

index 4770b0a134fff495aa723deee7d7cb4ad584a6dc..7aa547425acb4605be2a0fdb70ea03a5a143a996 100644 (file)
@@ -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 ()