summaryrefslogtreecommitdiffstats
path: root/third_party/aom/aom/aom_integer.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/aom/aom/aom_integer.h')
-rw-r--r--third_party/aom/aom/aom_integer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/aom/aom/aom_integer.h b/third_party/aom/aom/aom_integer.h
index 2e8f23f45..bd1fe270b 100644
--- a/third_party/aom/aom/aom_integer.h
+++ b/third_party/aom/aom/aom_integer.h
@@ -61,4 +61,6 @@ typedef size_t uintptr_t;
#include <inttypes.h>
#endif
+#define NELEMENTS(x) (int)(sizeof(x) / sizeof(x[0]))
+
#endif // AOM_AOM_INTEGER_H_