diff options
author | Glenn Kasten <gkasten@google.com> | 2015-03-09 15:56:22 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2015-03-09 15:56:22 -0700 |
commit | ec8930f218fa0c1acde631543b40b5a0b28bfe1f (patch) | |
tree | 0e81f9b456530eb8a745681726e4720e131bef77 /include/media/stagefright | |
parent | f9d19514b3e620b6339c98a442da833a702915ed (diff) | |
download | frameworks_av-ec8930f218fa0c1acde631543b40b5a0b28bfe1f.zip frameworks_av-ec8930f218fa0c1acde631543b40b5a0b28bfe1f.tar.gz frameworks_av-ec8930f218fa0c1acde631543b40b5a0b28bfe1f.tar.bz2 |
Fix warning while building mediaserver
In file included from frameworks/av/services/audiopolicy/managerdefault/AudioPolicyManager.h:31:0,
from frameworks/av/services/audiopolicy/service/AudioPolicyService.h:38,
from frameworks/av/media/mediaserver/main_mediaserver.cpp:36:
frameworks/av/services/audiopolicy/managerdefault/ConfigParsingUtils.h:29:0: warning: "ARRAY_SIZE" redefined
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
^
In file included from frameworks/av/media/libmediaplayerservice/MediaPlayerService.h:31:0,
from frameworks/av/media/mediaserver/main_mediaserver.cpp:35:
frameworks/av/include/media/stagefright/foundation/ABase.h:21:0: note: this is the location of the previous definition
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a)))
^
Change-Id: I4b80f783c592a78aa88b3dad297278353740466e
Diffstat (limited to 'include/media/stagefright')
-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 72e3d87..ef1e010 100644 --- a/include/media/stagefright/foundation/ABase.h +++ b/include/media/stagefright/foundation/ABase.h @@ -18,7 +18,9 @@ #define A_BASE_H_ +#ifndef ARRAY_SIZE #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) +#endif #define DISALLOW_EVIL_CONSTRUCTORS(name) \ name(const name &); \ |