Commit de4c24e0 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

Define ARRAY_SIZE macro if it is not provided by Xorg headers


Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent f99da9c5
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
/*****************************************************************************/ /*****************************************************************************/
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
#endif
#define SIMD_ALIGN(s) (((s) + 15) & ~15) #define SIMD_ALIGN(s) (((s) + 15) & ~15)
#define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE) #define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment