Bug 1399559 - Include nsXULAppAPI.h in AudioStream.cpp. r?jwwang draft
authorChris Pearce <cpearce@mozilla.com>
Thu, 14 Sep 2017 15:56:35 +1200
changeset 664585 9d9b6cdd138dda6767402933f7a957a8bade22e3
parent 664491 c15e2f280729b6503f9455cd4448ab2852eb5806
child 731480 c42402362088a4418b5826fb279ee272f62bbf31
push id79734
push userbmo:cpearce@mozilla.com
push dateThu, 14 Sep 2017 03:57:44 +0000
reviewersjwwang
bugs1399559
milestone57.0a1
Bug 1399559 - Include nsXULAppAPI.h in AudioStream.cpp. r?jwwang This ensures XRE_IsContentProcess() is defined, as it's used in this file. MozReview-Commit-ID: JFCmvZ8aZdT
dom/media/AudioStream.cpp
--- a/dom/media/AudioStream.cpp
+++ b/dom/media/AudioStream.cpp
@@ -14,16 +14,19 @@
 #include "mozilla/Mutex.h"
 #include "mozilla/Sprintf.h"
 #include <algorithm>
 #include "mozilla/Telemetry.h"
 #include "CubebUtils.h"
 #include "nsPrintfCString.h"
 #include "gfxPrefs.h"
 #include "AudioConverter.h"
+#if defined(XP_WIN)
+#include "nsXULAppAPI.h"
+#endif
 
 namespace mozilla {
 
 #undef LOG
 #undef LOGW
 
 LazyLogModule gAudioStreamLog("AudioStream");
 // For simple logs