aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/system.h b/src/system.h
index a7ae5a5f3..b8612ff5e 100644
--- a/src/system.h
+++ b/src/system.h
@@ -68,6 +68,7 @@
#endif
#include <stdckdint.h>
+#include <stdcountof.h>
#include <stddef.h>
#include <string.h>
#include <uchar.h>
@@ -770,10 +771,6 @@ stzncpy (char *restrict dest, char const *restrict src, size_t len)
return dest;
}
-#ifndef ARRAY_CARDINALITY
-# define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
-#endif
-
/* Return true if ERR is ENOTSUP or EOPNOTSUPP, otherwise false.
This wrapper function avoids the redundant 'or'd comparison on
systems like Linux for which they have the same value. It also