From 5b17c0b5b418c340d3e5201a72ee8c88c1755355 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Tue, 13 May 2014 10:55:33 -0700 Subject: 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 --- services/audioflinger/AudioFlinger.h | 1 + services/audioflinger/StateQueue.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'services/audioflinger') 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 #include #include 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 -- cgit v1.1