summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-05 11:06:18 +0000
committerJim Meyering <jim@meyering.net>2003-03-05 11:06:18 +0000
commit09fb1e2d6e845eceac810baef5890c17ff15e25e (patch)
tree78f5653994d871a579b91d96220661dca84b0c53 /lib
parent5bc14b90c6d2f1f0cba13348c4dc0e97a410974c (diff)
downloadcoreutils-09fb1e2d6e845eceac810baef5890c17ff15e25e.tar.xz
(ARRAY_SIZE): Define it.
Diffstat (limited to 'lib')
-rw-r--r--lib/physmem.c2
1 files changed, 2 insertions, 0 deletions
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 ()