Summary: Make Palemoon compile with gcc 11 Author: gentooman Linked from: https://repo.palemoon.org/mcp-graveyard/UXP/issues/1804 Source: https://dpaste.com/AF96RDF74 Source1: https://github.com/saloniamatteo/palemoon/blob/master/www-client/palemoon/files/add-limits-to-includes.patch Date: 2021-08-10 Message: By adding the to all these files, we can avoid compilation errors on the latest and greatest gcc. --- a/accessible/generic/HyperTextAccessible.cpp +++ b/accessible/generic/HyperTextAccessible.cpp @@ -38,6 +38,8 @@ #include "mozilla/dom/Selection.h" #include "mozilla/MathAlgorithms.h" #include "gfxSkipChars.h" + +#include #include using namespace mozilla; --- a/dom/crypto/WebCryptoTask.cpp +++ b/dom/crypto/WebCryptoTask.cpp @@ -3,6 +3,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include "pk11pub.h" #include "cryptohi.h" #include "secerr.h" --- a/dom/media/gtest/TestIntervalSet.cpp +++ b/dom/media/gtest/TestIntervalSet.cpp @@ -7,6 +7,8 @@ #include "mozilla/dom/TimeRanges.h" #include "TimeUnits.h" #include "Intervals.h" + +#include #include #include --- a/dom/media/webaudio/BiquadFilterNode.cpp +++ b/dom/media/webaudio/BiquadFilterNode.cpp @@ -4,6 +4,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include "BiquadFilterNode.h" #include "AlignmentUtils.h" #include "AudioNodeEngine.h" --- a/dom/media/webaudio/DelayBuffer.h +++ b/dom/media/webaudio/DelayBuffer.h @@ -7,6 +7,8 @@ #ifndef DelayBuffer_h_ #define DelayBuffer_h_ +#include + #include "nsTArray.h" #include "AudioBlock.h" #include "AudioSegment.h" --- a/dom/media/webaudio/IIRFilterNode.cpp +++ b/dom/media/webaudio/IIRFilterNode.cpp @@ -4,6 +4,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include "IIRFilterNode.h" #include "AlignmentUtils.h" #include "AudioBlock.h" --- a/dom/media/webm/WebMDemuxer.cpp +++ b/dom/media/webm/WebMDemuxer.cpp @@ -27,6 +27,7 @@ #include "prprf.h" // leaving it for PR_vsnprintf() #include "mozilla/Sprintf.h" +#include #include #include #include --- a/dom/svg/SVGContentUtils.cpp +++ b/dom/svg/SVGContentUtils.cpp @@ -31,6 +31,8 @@ #include "SVGPathData.h" #include "SVGPathElement.h" +#include + using namespace mozilla; using namespace mozilla::dom; using namespace mozilla::gfx; --- a/gfx/2d/BaseRect.h +++ b/gfx/2d/BaseRect.h @@ -9,6 +9,7 @@ #include #include #include +#include #include "mozilla/Assertions.h" #include "mozilla/FloatingPoint.h" --- a/gfx/2d/Matrix.h +++ b/gfx/2d/Matrix.h @@ -13,6 +13,7 @@ #include "Quaternion.h" #include #include +#include #include "mozilla/Attributes.h" #include "mozilla/DebugOnly.h" #include "mozilla/FloatingPoint.h" --- a/gfx/2d/image_operations.h +++ b/gfx/2d/image_operations.h @@ -29,6 +29,8 @@ #ifndef SKIA_EXT_IMAGE_OPERATIONS_H_ #define SKIA_EXT_IMAGE_OPERATIONS_H_ +#include + #include "skia/include/core/SkTypes.h" #include "Types.h" #include "convolver.h" --- a/gfx/angle/src/common/BitSetIterator.h +++ b/gfx/angle/src/common/BitSetIterator.h @@ -10,8 +10,8 @@ #ifndef COMMON_BITSETITERATOR_H_ #define COMMON_BITSETITERATOR_H_ +#include #include - #include #include "common/angleutils.h" --- a/gfx/angle/src/common/mathutil_unittest.cpp +++ b/gfx/angle/src/common/mathutil_unittest.cpp @@ -9,6 +9,7 @@ #include "mathutil.h" +#include #include using namespace gl; --- a/gfx/angle/src/common/utilities.cpp +++ b/gfx/angle/src/common/utilities.cpp @@ -10,6 +10,7 @@ #include "common/mathutil.h" #include "common/platform.h" +#include #include #if defined(ANGLE_ENABLE_WINDOWS_STORE) --- a/gfx/angle/src/compiler/translator/CallDAG.cpp +++ b/gfx/angle/src/compiler/translator/CallDAG.cpp @@ -8,6 +8,8 @@ // analyses, allows to efficiently traverse the functions in topological // order. +#include + #include "compiler/translator/CallDAG.h" #include "compiler/translator/InfoSink.h" --- a/gfx/angle/src/libANGLE/BinaryStream_unittest.cpp +++ b/gfx/angle/src/libANGLE/BinaryStream_unittest.cpp @@ -6,6 +6,7 @@ // BinaryStream_unittest.cpp: Unit tests of the binary stream classes. +#include #include #include "libANGLE/BinaryStream.h" --- a/gfx/angle/src/libANGLE/HandleAllocator.cpp +++ b/gfx/angle/src/libANGLE/HandleAllocator.cpp @@ -9,6 +9,7 @@ #include "libANGLE/HandleAllocator.h" +#include #include #include "common/debug.h" --- a/gfx/angle/src/libANGLE/HandleAllocator_unittest.cpp +++ b/gfx/angle/src/libANGLE/HandleAllocator_unittest.cpp @@ -6,6 +6,8 @@ // Unit tests for HandleAllocator. // +#include + #include "gmock/gmock.h" #include "gtest/gtest.h" --- a/gfx/angle/src/libANGLE/HandleRangeAllocator_unittest.cpp +++ b/gfx/angle/src/libANGLE/HandleRangeAllocator_unittest.cpp @@ -6,9 +6,10 @@ // Unit tests for HandleRangeAllocator. // +#include + #include "gmock/gmock.h" #include "gtest/gtest.h" - #include "libANGLE/HandleRangeAllocator.h" namespace --- a/gfx/angle/src/libANGLE/Program.cpp +++ b/gfx/angle/src/libANGLE/Program.cpp @@ -9,6 +9,7 @@ #include "libANGLE/Program.h" +#include #include #include "common/BitSetIterator.h" --- a/gfx/angle/src/libANGLE/queryconversions.cpp +++ b/gfx/angle/src/libANGLE/queryconversions.cpp @@ -8,6 +8,7 @@ #include "libANGLE/queryconversions.h" +#include #include #include "libANGLE/Context.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/BufferD3D.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/BufferD3D.cpp @@ -6,6 +6,8 @@ // BufferD3D.cpp Defines common functionality between the Buffer9 and Buffer11 classes. +#include + #include "libANGLE/renderer/d3d/BufferD3D.h" #include "common/mathutil.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/IndexDataManager.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/IndexDataManager.cpp @@ -7,6 +7,8 @@ // IndexDataManager.cpp: Defines the IndexDataManager, a class that // runs the Buffer translation process for index buffers. +#include + #include "libANGLE/renderer/d3d/IndexDataManager.h" #include "common/utilities.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/RendererD3D.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/RendererD3D.cpp @@ -6,6 +6,8 @@ // RendererD3D.cpp: Implementation of the base D3D Renderer. +#include + #include "libANGLE/renderer/d3d/RendererD3D.h" #include "common/debug.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/VertexDataManager.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/VertexDataManager.cpp @@ -7,6 +7,8 @@ // VertexDataManager.h: Defines the VertexDataManager, a class that // runs the Buffer translation process. +#include + #include "libANGLE/renderer/d3d/VertexDataManager.h" #include "common/BitSetIterator.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Buffer11.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Buffer11.cpp @@ -8,6 +8,7 @@ #include "libANGLE/renderer/d3d/d3d11/Buffer11.h" +#include #include #include "common/MemoryBuffer.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/InputLayoutCache.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/InputLayoutCache.cpp @@ -7,6 +7,8 @@ // InputLayoutCache.cpp: Defines InputLayoutCache, a class that builds and caches // D3D11 input layouts. +#include + #include "libANGLE/renderer/d3d/d3d11/InputLayoutCache.h" #include "common/BitSetIterator.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Query11.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Query11.cpp @@ -8,6 +8,7 @@ #include "libANGLE/renderer/d3d/d3d11/Query11.h" +#include #include #include "common/utilities.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp @@ -8,6 +8,7 @@ #include "libANGLE/renderer/d3d/d3d11/Renderer11.h" +#include #include #include #include --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/StateManager11.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/StateManager11.cpp @@ -6,6 +6,8 @@ // StateManager11.cpp: Defines a class for caching D3D11 state +#include + #include "libANGLE/renderer/d3d/d3d11/StateManager11.h" #include "common/BitSetIterator.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp @@ -10,6 +10,7 @@ #include "libANGLE/renderer/d3d/d3d11/TextureStorage11.h" +#include #include #include "common/MemoryBuffer.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/copyvertex.inl +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/copyvertex.inl @@ -4,6 +4,8 @@ // found in the LICENSE file. // +#include + namespace rx { --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp @@ -9,6 +9,7 @@ #include "libANGLE/renderer/d3d/d3d11/renderer11_utils.h" +#include #include #include "common/debug.h" --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d9/Renderer9.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d9/Renderer9.cpp @@ -8,6 +8,7 @@ #include "libANGLE/renderer/d3d/d3d9/Renderer9.h" +#include #include #include --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d9/renderer9_utils.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d9/renderer9_utils.cpp @@ -7,6 +7,8 @@ // renderer9_utils.cpp: Conversion functions and other utility routines // specific to the D3D9 renderer. +#include + #include "libANGLE/renderer/d3d/d3d9/renderer9_utils.h" #include "common/mathutil.h" --- a/gfx/angle/src/libANGLE/validationES.cpp +++ b/gfx/angle/src/libANGLE/validationES.cpp @@ -6,8 +6,9 @@ // validationES.h: Validation functions for generic OpenGL ES entry point parameters -#include "libANGLE/validationES.h" +#include +#include "libANGLE/validationES.h" #include "libANGLE/validationES2.h" #include "libANGLE/validationES3.h" #include "libANGLE/Context.h" --- a/gfx/angle/src/libANGLE/validationES2.cpp +++ b/gfx/angle/src/libANGLE/validationES2.cpp @@ -8,6 +8,7 @@ #include "libANGLE/validationES2.h" +#include #include #include "libANGLE/validationES.h" --- a/gfx/angle/src/libANGLE/validationES3.cpp +++ b/gfx/angle/src/libANGLE/validationES3.cpp @@ -6,8 +6,9 @@ // validationES3.cpp: Validation functions for OpenGL ES 3.0 entry point parameters -#include "libANGLE/validationES3.h" +#include +#include "libANGLE/validationES3.h" #include "libANGLE/validationES.h" #include "libANGLE/Context.h" #include "libANGLE/Texture.h" --- a/gfx/angle/src/tests/compiler_tests/ConstantFolding_test.cpp +++ b/gfx/angle/src/tests/compiler_tests/ConstantFolding_test.cpp @@ -7,6 +7,7 @@ // Tests for constant folding // +#include #include #include "angle_gl.h" --- a/gfx/angle/src/tests/gl_tests/BlendMinMaxTest.cpp +++ b/gfx/angle/src/tests/gl_tests/BlendMinMaxTest.cpp @@ -4,6 +4,7 @@ // found in the LICENSE file. // +#include #include "test_utils/ANGLETest.h" using namespace angle; --- a/gfx/angle/src/tests/gl_tests/BufferDataTest.cpp +++ b/gfx/angle/src/tests/gl_tests/BufferDataTest.cpp @@ -6,6 +6,7 @@ #include "test_utils/ANGLETest.h" +#include #include using namespace angle; --- a/gfx/angle/src/tests/gl_tests/DepthStencilFormatsTest.cpp +++ b/gfx/angle/src/tests/gl_tests/DepthStencilFormatsTest.cpp @@ -4,6 +4,7 @@ // found in the LICENSE file. // +#include #include "test_utils/ANGLETest.h" using namespace angle; --- a/gfx/angle/src/tests/gl_tests/PathRenderingTest.cpp +++ b/gfx/angle/src/tests/gl_tests/PathRenderingTest.cpp @@ -12,6 +12,7 @@ #include "common/angleutils.h" +#include #include #include #include --- a/gfx/angle/src/tests/gl_tests/UniformTest.cpp +++ b/gfx/angle/src/tests/gl_tests/UniformTest.cpp @@ -6,6 +6,7 @@ #include "test_utils/ANGLETest.h" +#include #include #include --- a/gfx/angle/src/tests/gl_tests/VertexAttributeTest.cpp +++ b/gfx/angle/src/tests/gl_tests/VertexAttributeTest.cpp @@ -4,6 +4,7 @@ // found in the LICENSE file. // +#include #include "test_utils/ANGLETest.h" using namespace angle; --- a/gfx/angle/src/tests/perf_tests/BufferSubData.cpp +++ b/gfx/angle/src/tests/perf_tests/BufferSubData.cpp @@ -7,6 +7,7 @@ // Performance test for ANGLE buffer updates. // +#include #include #include "ANGLEPerfTest.h" --- a/gfx/angle/src/tests/perf_tests/DynamicPromotionPerfTest.cpp +++ b/gfx/angle/src/tests/perf_tests/DynamicPromotionPerfTest.cpp @@ -9,6 +9,8 @@ // dynamic and static buffers quite differently. // +#include + #include "ANGLEPerfTest.h" #include "random_utils.h" #include "shader_utils.h" --- a/gfx/angle/src/tests/perf_tests/IndexConversionPerf.cpp +++ b/gfx/angle/src/tests/perf_tests/IndexConversionPerf.cpp @@ -7,6 +7,7 @@ // Performance tests for ANGLE index conversion in D3D11. // +#include #include #include "ANGLEPerfTest.h" --- a/gfx/layers/client/TiledContentClient.cpp +++ b/gfx/layers/client/TiledContentClient.cpp @@ -3,6 +3,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include #include "mozilla/layers/TiledContentClient.h" #include // for ceil, ceilf, floor #include --- a/gfx/ots/src/hdmx.cc +++ b/gfx/ots/src/hdmx.cc @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include + #include "hdmx.h" #include "head.h" #include "maxp.h" --- a/gfx/ots/src/kern.cc +++ b/gfx/ots/src/kern.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include #include "kern.h" // kern - Kerning --- a/gfx/ots/src/name.cc +++ b/gfx/ots/src/name.cc @@ -4,6 +4,7 @@ #include "name.h" +#include #include #include --- a/gfx/skia/skia/include/core/SkPathRef.h +++ b/gfx/skia/skia/include/core/SkPathRef.h @@ -18,6 +18,8 @@ #include "SkRefCnt.h" #include "../private/SkTemplates.h" +#include + class SkRBuffer; class SkWBuffer; --- a/gfx/skia/skia/include/private/SkTDArray.h +++ b/gfx/skia/skia/include/private/SkTDArray.h @@ -10,6 +10,8 @@ #ifndef SkTDArray_DEFINED #define SkTDArray_DEFINED +#include + #include "SkTypes.h" template class SkTDArray { --- a/gfx/skia/skia/src/core/SkColorSpace_ICC.cpp +++ b/gfx/skia/skia/src/core/SkColorSpace_ICC.cpp @@ -5,6 +5,8 @@ * found in the LICENSE file. */ +#include + #include "SkColorSpace.h" #include "SkColorSpace_Base.h" #include "SkColorSpacePriv.h" --- a/gfx/skia/skia/src/core/SkEdgeBuilder.cpp +++ b/gfx/skia/skia/src/core/SkEdgeBuilder.cpp @@ -4,6 +4,9 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ + +#include + #include "SkEdgeBuilder.h" #include "SkPath.h" #include "SkEdge.h" --- a/gfx/skia/skia/src/core/SkMask.cpp +++ b/gfx/skia/skia/src/core/SkMask.cpp @@ -5,6 +5,7 @@ * found in the LICENSE file. */ +#include #include "SkMask.h" //#define TRACK_SKMASK_LIFETIME --- a/gfx/skia/skia/src/sksl/SkSLUtil.h +++ b/gfx/skia/skia/src/sksl/SkSLUtil.h @@ -8,6 +8,7 @@ #ifndef SKSL_UTIL #define SKSL_UTIL +#include #include #include #include --- a/gfx/thebes/gfxUserFontSet.cpp +++ b/gfx/thebes/gfxUserFontSet.cpp @@ -24,6 +24,8 @@ #include "opentype-sanitiser.h" #include "ots-memory-stream.h" +#include + using namespace mozilla; mozilla::LogModule* --- a/intl/unicharutil/util/ICUUtils.cpp +++ b/intl/unicharutil/util/ICUUtils.cpp @@ -4,6 +4,8 @@ #ifdef MOZILLA_INTERNAL_API +#include + #include "ICUUtils.h" #include "mozilla/Preferences.h" #include "nsIContent.h" --- a/ipc/chromium/src/chrome/common/ipc_channel_win.cc +++ b/ipc/chromium/src/chrome/common/ipc_channel_win.cc @@ -5,6 +5,7 @@ #include "chrome/common/ipc_channel_win.h" +#include #include #include --- a/ipc/glue/Faulty.cpp +++ b/ipc/glue/Faulty.cpp @@ -12,6 +12,7 @@ #include "prenv.h" #include "mozilla/TypeTraits.h" #include +#include #include namespace mozilla { --- a/ipc/glue/GeckoChildProcessHost.cpp +++ b/ipc/glue/GeckoChildProcessHost.cpp @@ -43,6 +43,8 @@ #include "nsNativeCharsetUtils.h" #include "nscore.h" // for NS_FREE_PERMANENT_DATA +#include + using mozilla::MonitorAutoLock; using mozilla::ipc::GeckoChildProcessHost; --- a/js/src/jit/ExecutableAllocator.cpp +++ b/js/src/jit/ExecutableAllocator.cpp @@ -24,8 +24,9 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "jit/ExecutableAllocator.h" +#include +#include "jit/ExecutableAllocator.h" #include "jit/JitCompartment.h" #include "js/MemoryMetrics.h" --- a/js/src/new-regexp/regexp-bytecode-peephole.cc +++ b/js/src/new-regexp/regexp-bytecode-peephole.cc @@ -2,8 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "new-regexp/regexp-bytecode-peephole.h" +#include +#include "new-regexp/regexp-bytecode-peephole.h" #include "new-regexp/regexp-bytecodes.h" namespace v8 { --- a/js/src/new-regexp/util/vector.h +++ b/js/src/new-regexp/util/vector.h @@ -5,6 +5,7 @@ #ifndef V8_UTIL_VECTOR_H_ #define V8_UTIL_VECTOR_H_ +#include #include #include #include --- a/js/src/vm/ArrayBufferObject.h +++ b/js/src/vm/ArrayBufferObject.h @@ -6,6 +6,8 @@ #ifndef vm_ArrayBufferObject_h #define vm_ArrayBufferObject_h +#include + #include "mozilla/Maybe.h" #include "jsobj.h" --- a/layout/generic/nsViewportFrame.cpp +++ b/layout/generic/nsViewportFrame.cpp @@ -18,6 +18,8 @@ #include "nsIMozBrowserFrame.h" #include "nsPlaceholderFrame.h" +#include + using namespace mozilla; typedef nsAbsoluteContainingBlock::AbsPosReflowFlags AbsPosReflowFlags; --- a/layout/style/CounterStyleManager.cpp +++ b/layout/style/CounterStyleManager.cpp @@ -20,6 +20,8 @@ #include "mozilla/StyleSetHandle.h" #include "mozilla/StyleSetHandleInlines.h" +#include + namespace mozilla { struct AdditiveSymbol --- a/layout/style/StyleAnimationValue.cpp +++ b/layout/style/StyleAnimationValue.cpp @@ -33,6 +33,8 @@ #include "nsIFrame.h" #include "gfx2DGlue.h" +#include + using namespace mozilla; using namespace mozilla::css; using namespace mozilla::gfx; --- a/layout/style/nsStyleContext.cpp +++ b/layout/style/nsStyleContext.cpp @@ -43,6 +43,8 @@ // those in ServoBindings.h. #include "mozilla/ServoBindings.h" +#include + using namespace mozilla; //---------------------------------------------------------------------- --- a/layout/svg/SVGTextFrame.h +++ b/layout/svg/SVGTextFrame.h @@ -17,6 +17,8 @@ #include "nsStubMutationObserver.h" #include "nsSVGContainerFrame.h" +#include + class gfxContext; class nsDisplaySVGText; class SVGTextFrame; --- a/mailnews/import/becky/src/nsBeckyAddressBooks.cpp +++ b/mailnews/import/becky/src/nsBeckyAddressBooks.cpp @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include "nsCOMPtr.h" #include "nsComponentManagerUtils.h" #include "nsServiceManagerUtils.h" --- a/media/webrtc/trunk/testing/gtest/src/gtest.cc +++ b/media/webrtc/trunk/testing/gtest/src/gtest.cc @@ -43,6 +43,7 @@ #include #include +#include #include #include // NOLINT #include --- a/media/webrtc/trunk/webrtc/base/bitbuffer_unittest.cc +++ b/media/webrtc/trunk/webrtc/base/bitbuffer_unittest.cc @@ -8,6 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ +#include + #include "webrtc/base/arraysize.h" #include "webrtc/base/bitbuffer.h" #include "webrtc/base/bytebuffer.h" --- a/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc +++ b/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc @@ -8,6 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ +#include + #include "webrtc/modules/audio_coding/codecs/opus/interface/audio_encoder_opus.h" #include "webrtc/base/checks.h" --- a/media/webrtc/trunk/webrtc/modules/audio_device/android/audio_device_unittest.cc +++ b/media/webrtc/trunk/webrtc/modules/audio_device/android/audio_device_unittest.cc @@ -8,6 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ +#include #include #include --- a/media/webrtc/trunk/webrtc/modules/audio_processing/transient/transient_suppressor.cc +++ b/media/webrtc/trunk/webrtc/modules/audio_processing/transient/transient_suppressor.cc @@ -10,6 +10,7 @@ #include "webrtc/modules/audio_processing/transient/transient_suppressor.h" +#include #include #include #include --- a/media/webrtc/trunk/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc +++ b/media/webrtc/trunk/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc @@ -9,6 +9,7 @@ */ #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.h" +#include #include #include --- a/media/webrtc/trunk/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc +++ b/media/webrtc/trunk/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc @@ -9,6 +9,7 @@ */ #include +#include #include #include --- a/mfbt/IntegerTypeTraits.h +++ b/mfbt/IntegerTypeTraits.h @@ -8,6 +8,8 @@ #ifndef mozilla_IntegerTypeTraits_h #define mozilla_IntegerTypeTraits_h +#include + #include "mozilla/TypeTraits.h" #include --- a/mfbt/decimal/Decimal.cpp +++ b/mfbt/decimal/Decimal.cpp @@ -28,6 +28,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include + #include "Decimal.h" #include "moz-decimal-utils.h" --- a/modules/woff2/src/normalize.cc +++ b/modules/woff2/src/normalize.cc @@ -8,6 +8,7 @@ #include "./normalize.h" +#include #include #include --- a/netwerk/base/nsIOService.cpp +++ b/netwerk/base/nsIOService.cpp @@ -4,6 +4,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include "mozilla/ArrayUtils.h" #include "mozilla/DebugOnly.h" --- a/netwerk/base/nsStandardURL.cpp +++ b/netwerk/base/nsStandardURL.cpp @@ -4,6 +4,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include "IPCMessageUtils.h" #include "nsStandardURL.h" --- a/netwerk/base/nsURLParsers.cpp +++ b/netwerk/base/nsURLParsers.cpp @@ -4,6 +4,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include +#include #include "mozilla/RangedPtr.h" --- a/security/manager/ssl/TransportSecurityInfo.cpp +++ b/security/manager/ssl/TransportSecurityInfo.cpp @@ -4,6 +4,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include #include "TransportSecurityInfo.h" #include "PSMRunnable.h" --- a/security/nss/gtests/google_test/gtest/test/googletest-death-test-test.cc +++ b/security/nss/gtests/google_test/gtest/test/googletest-death-test-test.cc @@ -30,6 +30,8 @@ // // Tests for death tests. +#include + #include "gtest/gtest-death-test.h" #include "gtest/gtest.h" #include "gtest/internal/gtest-filepath.h" --- a/testing/gtest/gtest/src/gtest.cc +++ b/testing/gtest/gtest/src/gtest.cc @@ -42,6 +42,7 @@ #include #include +#include #include #include // NOLINT #include --- a/toolkit/components/telemetry/Telemetry.cpp +++ b/toolkit/components/telemetry/Telemetry.cpp @@ -3,8 +3,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include #include - #include #include --- a/toolkit/components/url-classifier/RiceDeltaDecoder.cpp +++ b/toolkit/components/url-classifier/RiceDeltaDecoder.cpp @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include #include "RiceDeltaDecoder.h" namespace {