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-private.h | |
parent | 7edc5a8844b96862b866901568eb83fa56f4755b (diff) |
Refactor ARRAY_LENGTH macro definitions in test code
Diffstat (limited to 'boilerplate/cairo-boilerplate-private.h')
-rw-r--r-- | boilerplate/cairo-boilerplate-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boilerplate/cairo-boilerplate-private.h b/boilerplate/cairo-boilerplate-private.h index a7a2dd0eb..d16a645b2 100644 --- a/boilerplate/cairo-boilerplate-private.h +++ b/boilerplate/cairo-boilerplate-private.h @@ -41,7 +41,7 @@ _cairo_boilerplate_register_backend (const cairo_boilerplate_target_t *targets, void _register_##name__ (void); \ void _register_##name__ (void) { \ _cairo_boilerplate_register_backend (targets__, \ - sizeof (targets__) / sizeof (targets__[0])); \ + ARRAY_LENGTH(targets__)); \ } #define CAIRO_NO_BOILERPLATE(name__) \ |