summaryrefslogtreecommitdiff
path: root/tests/proptest/proptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/proptest/proptest.c')
-rw-r--r--tests/proptest/proptest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/proptest/proptest.c b/tests/proptest/proptest.c
index b9296bdb..b6e00cfc 100644
--- a/tests/proptest/proptest.c
+++ b/tests/proptest/proptest.c
@@ -35,7 +35,8 @@
#include "xf86drm.h"
#include "xf86drmMode.h"
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+#include "util/common.h"
+
static inline int64_t U642I64(uint64_t val)
{
return (int64_t)*((int64_t *)&val);