summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-05-13 10:55:33 -0700
committerGlenn Kasten <gkasten@google.com>2014-05-13 13:26:33 -0700
commit5b17c0b5b418c340d3e5201a72ee8c88c1755355 (patch)
tree6a9669a90265a46bba05b89ad35ed9edbc13a8c4
parent963698408b1ce0f2ac7eab1e863dc7271de116a3 (diff)
downloadframeworks_av-5b17c0b5b418c340d3e5201a72ee8c88c1755355.zip
frameworks_av-5b17c0b5b418c340d3e5201a72ee8c88c1755355.tar.gz
frameworks_av-5b17c0b5b418c340d3e5201a72ee8c88c1755355.tar.bz2
Explicitly include Configuration.h
Must include Configuration.h in any source file with #ifdef or #if that depends on Configuration.h. This avoid inconsistencies that could result in subtle bugs. Change-Id: I99fdf19d56e7c73de4e7d672b937336b932a2a00
-rw-r--r--services/audioflinger/AudioFlinger.h1
-rw-r--r--services/audioflinger/StateQueue.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 894bd35..fd9fe96 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -18,6 +18,7 @@
#ifndef ANDROID_AUDIO_FLINGER_H
#define ANDROID_AUDIO_FLINGER_H
+#include "Configuration.h"
#include <stdint.h>
#include <sys/types.h>
#include <limits.h>
diff --git a/services/audioflinger/StateQueue.h b/services/audioflinger/StateQueue.h
index 9cde642..9e176c4 100644
--- a/services/audioflinger/StateQueue.h
+++ b/services/audioflinger/StateQueue.h
@@ -89,6 +89,8 @@
// arithmetic on the state pointers. However to the mutator, the state pointers
// are in a definite circular order.
+#include "Configuration.h"
+
namespace android {
#ifdef STATE_QUEUE_DUMP