summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldefines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/egldefines.h')
-rw-r--r--src/egl/main/egldefines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/main/egldefines.h b/src/egl/main/egldefines.h
index 8fc2301b795..4ecd4c1420c 100644
--- a/src/egl/main/egldefines.h
+++ b/src/egl/main/egldefines.h
@@ -40,6 +40,7 @@
#define _EGL_VENDOR_STRING "Mesa Project"
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#endif /* EGLDEFINES_INCLUDED */