diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2014-11-20 12:19:47 -0800 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2014-11-20 12:22:06 -0800 |
commit | 2c5af590ddbb08e0a46b7e37c5f0230b1805cd37 (patch) | |
tree | 8a44d28184791a443ecb10d980fcb71cb2c779ac /boilerplate/cairo-boilerplate.h | |
parent | 7edc5a8844b96862b866901568eb83fa56f4755b (diff) | |
download | cairo-2c5af590ddbb08e0a46b7e37c5f0230b1805cd37.tar.gz |
Refactor ARRAY_LENGTH macro definitions in test code
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 |