OSDN Git Service

stagefright: move ARRAY_SIZE to foundation
authorLajos Molnar <lajos@google.com>
Wed, 6 Aug 2014 18:30:16 +0000 (11:30 -0700)
committerLajos Molnar <lajos@google.com>
Thu, 7 Aug 2014 02:29:40 +0000 (19:29 -0700)
Bug: 11990470
Change-Id: Ifae790b774a0fb210acbe33a1310d3d6ba46e7fa

include/media/stagefright/foundation/ABase.h
media/libstagefright/include/SoftVideoDecoderOMXComponent.h

index 949d49e..72e3d87 100644 (file)
@@ -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 &)
index d050fa6..7f200dd 100644 (file)
@@ -27,8 +27,6 @@
 #include <utils/threads.h>
 #include <utils/Vector.h>
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a)))
-
 namespace android {
 
 struct SoftVideoDecoderOMXComponent : public SimpleSoftOMXComponent {