Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9522673 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

stagefright: move ARRAY_SIZE to foundation

Bug: 11990470
Change-Id: Ifae790b774a0fb210acbe33a1310d3d6ba46e7fa
parent 0893eaf7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 &)
+0 −2
Original line number Diff line number Diff line
@@ -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 {