diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-05 11:06:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-05 11:06:18 +0000 |
commit | 09fb1e2d6e845eceac810baef5890c17ff15e25e (patch) | |
tree | 78f5653994d871a579b91d96220661dca84b0c53 | |
parent | 5bc14b90c6d2f1f0cba13348c4dc0e97a410974c (diff) | |
download | coreutils-09fb1e2d6e845eceac810baef5890c17ff15e25e.tar.xz |
(ARRAY_SIZE): Define it.
-rw-r--r-- | lib/physmem.c | 2 |
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 () |