diff options
Diffstat (limited to 'boilerplate/cairo-boilerplate.h')
-rw-r--r-- | boilerplate/cairo-boilerplate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h index 4f6b8fde9..515bb03bc 100644 --- a/boilerplate/cairo-boilerplate.h +++ b/boilerplate/cairo-boilerplate.h @@ -94,6 +94,10 @@ #define M_PI 3.14159265358979323846 #endif +#ifndef ARRAY_LENGTH +#define ARRAY_LENGTH(__array) ((int) (sizeof (__array) / sizeof (__array[0]))) +#endif + CAIRO_BEGIN_DECLS /* A fake format we use for the flattened ARGB output of the PS and |