diff options
author | Lajos Molnar <lajos@google.com> | 2014-08-06 11:30:16 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-08-06 19:29:40 -0700 |
commit | a9522673f3076ea937eb2912945d7ed646ca05df (patch) | |
tree | 144c904f29fa5a155bf0b9b2a84cd2614ab356bd /include | |
parent | 0893eaf7d21e3a50b81324673eaa91a6b77a39c2 (diff) | |
download | frameworks_av-a9522673f3076ea937eb2912945d7ed646ca05df.zip frameworks_av-a9522673f3076ea937eb2912945d7ed646ca05df.tar.gz frameworks_av-a9522673f3076ea937eb2912945d7ed646ca05df.tar.bz2 |
stagefright: move ARRAY_SIZE to foundation
Bug: 11990470
Change-Id: Ifae790b774a0fb210acbe33a1310d3d6ba46e7fa
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/foundation/ABase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/stagefright/foundation/ABase.h b/include/media/stagefright/foundation/ABase.h index 949d49e..72e3d87 100644 --- a/include/media/stagefright/foundation/ABase.h +++ b/include/media/stagefright/foundation/ABase.h @@ -18,6 +18,8 @@ #define A_BASE_H_ +#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) + #define DISALLOW_EVIL_CONSTRUCTORS(name) \ name(const name &); \ name &operator=(const name &) |