commit 93496ffd0ecc9eb58e20864df438360fc6fcd1ba parent d245f0769039e204442e07023797278350929255 Author: serge-sans-paille <sguelton@mozilla.com> Date: Wed, 7 Jan 2026 13:58:51 +0000 Bug 2008694 - Remove unused <stdint.h> inclusion and make sure we don't regress on those r=webrtc-reviewers,layout-reviewers,manuel,emilio,ng Differential Revision: https://phabricator.services.mozilla.com/D277978 Diffstat:
78 files changed, 78 insertions(+), 92 deletions(-)
diff --git a/accessible/atk/DOMtoATK.h b/accessible/atk/DOMtoATK.h @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <glib.h> -#include <cstdint> #include "mozilla/a11y/HyperTextAccessibleBase.h" #include "nsCharTraits.h" #include "nsString.h" diff --git a/build/clang-plugin/tests/TestNonMemMovableStdAtomic.cpp b/build/clang-plugin/tests/TestNonMemMovableStdAtomic.cpp @@ -6,7 +6,6 @@ template<class T> class MOZ_NEEDS_MEMMOVABLE_TYPE Mover { T mForceInst; }; #include <atomic> -#include <cstdint> struct CustomType{}; static struct { Mover<std::atomic<CustomType>> m1; diff --git a/dom/base/ThirdPartyUtil.h b/dom/base/ThirdPartyUtil.h @@ -7,8 +7,6 @@ #ifndef ThirdPartyUtil_h__ #define ThirdPartyUtil_h__ -#include <cstdint> - #include "ErrorList.h" #include "mozIThirdPartyUtil.h" #include "mozilla/RefPtr.h" diff --git a/dom/base/nsFrameMessageManager.h b/dom/base/nsFrameMessageManager.h @@ -9,8 +9,6 @@ #include <string.h> -#include <cstdint> - #include "ErrorList.h" #include "js/TypeDecls.h" #include "js/Value.h" diff --git a/dom/fs/parent/FileSystemManagerParentFactory.h b/dom/fs/parent/FileSystemManagerParentFactory.h @@ -7,6 +7,7 @@ #ifndef DOM_FS_PARENT_FILESYSTEMMANAGER_H_ #define DOM_FS_PARENT_FILESYSTEMMANAGER_H_ +#include <cstdint> #include <functional> enum class nsresult : uint32_t; diff --git a/dom/gamepad/GamepadButton.h b/dom/gamepad/GamepadButton.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_gamepad_GamepadButton_h #define mozilla_dom_gamepad_GamepadButton_h -#include <stdint.h> - #include "nsCOMPtr.h" #include "nsWrapperCache.h" diff --git a/dom/localstorage/LocalStorageCommon.h b/dom/localstorage/LocalStorageCommon.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_localstorage_LocalStorageCommon_h #define mozilla_dom_localstorage_LocalStorageCommon_h -#include <cstdint> - #include "ErrorList.h" #include "mozilla/Attributes.h" #include "mozilla/dom/quota/QuotaCommon.h" diff --git a/dom/localstorage/LocalStorageManager2.h b/dom/localstorage/LocalStorageManager2.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_localstorage_LocalStorageManager2_h #define mozilla_dom_localstorage_LocalStorageManager2_h -#include <cstdint> - #include "ErrorList.h" #include "nsIDOMStorageManager.h" #include "nsILocalStorageManager.h" diff --git a/dom/media/CallbackThreadRegistry.h b/dom/media/CallbackThreadRegistry.h @@ -11,7 +11,6 @@ #include <mozilla/DataMutex.h> #include <nsTArray.h> -#include <cstdint> #include <thread> namespace mozilla { diff --git a/dom/media/webrtc/jsep/SsrcGenerator.h b/dom/media/webrtc/jsep/SsrcGenerator.h @@ -5,6 +5,7 @@ #ifndef _SSRCGENERATOR_H_ #define _SSRCGENERATOR_H_ +#include <cstdint> #include <set> namespace mozilla { diff --git a/dom/media/webrtc/transport/mdns_service/mdns_service.h b/dom/media/webrtc/transport/mdns_service/mdns_service.h @@ -2,7 +2,6 @@ * 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 <cstdint> #include <new> struct MDNSService; diff --git a/dom/quota/ActorsChild.h b/dom/quota/ActorsChild.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_quota_ActorsChild_h #define mozilla_dom_quota_ActorsChild_h -#include <cstdint> - #include "ErrorList.h" #include "mozilla/RefPtr.h" #include "mozilla/dom/quota/PQuotaChild.h" diff --git a/dom/quota/FirstInitializationAttempts.h b/dom/quota/FirstInitializationAttempts.h @@ -7,7 +7,6 @@ #ifndef DOM_QUOTA_FIRSTINITIALIZATIONATTEMPTS_H_ #define DOM_QUOTA_FIRSTINITIALIZATIONATTEMPTS_H_ -#include <cstdint> #include <utility> #include "ErrorList.h" diff --git a/dom/quota/QuotaManagerService.h b/dom/quota/QuotaManagerService.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_quota_QuotaManagerService_h #define mozilla_dom_quota_QuotaManagerService_h -#include <cstdint> - #include "ErrorList.h" #include "mozilla/AlreadyAddRefed.h" #include "mozilla/HalBatteryInformation.h" diff --git a/dom/quota/QuotaRequests.h b/dom/quota/QuotaRequests.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_quota_UsageRequest_h #define mozilla_dom_quota_UsageRequest_h -#include <cstdint> - #include "ErrorList.h" #include "nsCOMPtr.h" #include "nsCycleCollectionParticipant.h" diff --git a/dom/serviceworkers/ServiceWorkerShutdownState.h b/dom/serviceworkers/ServiceWorkerShutdownState.h @@ -7,8 +7,6 @@ #ifndef DOM_SERVICEWORKERS_SERVICEWORKERSHUTDOWNSTATE_H_ #define DOM_SERVICEWORKERS_SERVICEWORKERSHUTDOWNSTATE_H_ -#include <cstdint> - #include "ipc/EnumSerializer.h" #include "mozilla/dom/ServiceWorkerOpArgs.h" diff --git a/dom/simpledb/ActorsChild.h b/dom/simpledb/ActorsChild.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_simpledb_ActorsChild_h #define mozilla_dom_simpledb_ActorsChild_h -#include <cstdint> - #include "ErrorList.h" #include "mozilla/RefPtr.h" #include "mozilla/dom/PBackgroundSDBConnectionChild.h" diff --git a/dom/simpledb/SDBConnection.h b/dom/simpledb/SDBConnection.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_simpledb_SDBConnection_h #define mozilla_dom_simpledb_SDBConnection_h -#include <cstdint> - #include "ErrorList.h" #include "mozilla/UniquePtr.h" #include "mozilla/dom/quota/PersistenceType.h" diff --git a/dom/simpledb/SDBRequest.h b/dom/simpledb/SDBRequest.h @@ -7,8 +7,6 @@ #ifndef mozilla_dom_simpledb_SDBRequest_h #define mozilla_dom_simpledb_SDBRequest_h -#include <cstdint> - #include "ErrorList.h" #include "mozilla/RefPtr.h" #include "nsCOMPtr.h" diff --git a/dom/workers/WorkerRunnable.h b/dom/workers/WorkerRunnable.h @@ -7,7 +7,6 @@ #ifndef mozilla_dom_workers_workerrunnable_h__ #define mozilla_dom_workers_workerrunnable_h__ -#include <cstdint> #include <utility> #include "MainThreadUtils.h" diff --git a/gfx/layers/apz/src/AndroidVelocityTracker.h b/gfx/layers/apz/src/AndroidVelocityTracker.h @@ -8,7 +8,6 @@ #define mozilla_layers_AndroidVelocityTracker_h #include <utility> -#include <cstdint> #include "Axis.h" #include "mozilla/Maybe.h" diff --git a/gfx/layers/apz/src/SimpleVelocityTracker.h b/gfx/layers/apz/src/SimpleVelocityTracker.h @@ -8,7 +8,6 @@ #define mozilla_layers_VelocityTracker_h #include <utility> -#include <cstdint> #include "Axis.h" #include "mozilla/Attributes.h" diff --git a/gfx/vr/service/osvr/Util/StdInt.h b/gfx/vr/service/osvr/Util/StdInt.h @@ -32,7 +32,6 @@ /* IWYU pragma: begin_exports */ #if !defined(_MSC_VER) || (defined(_MSC_VER) && _MSC_VER >= 1600) -# include <stdint.h> #else # include "MSStdIntC.h" #endif diff --git a/intl/lwbrk/rulebrk.c b/intl/lwbrk/rulebrk.c @@ -3,7 +3,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #define TH_UNICODE -#include <stdint.h> #include <assert.h> #include "th_char.h" #define th_isalpha(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z')) diff --git a/intl/lwbrk/th_char.h b/intl/lwbrk/th_char.h @@ -19,8 +19,10 @@ typedef unsigned char tis_char; * select a binary compatible C type for the expat C code to use. */ # ifdef __cplusplus +# include <uchar.h> typedef char16_t th_char; # else +# include <stdint.h> typedef uint16_t th_char; # endif # define TH_THAIBEGIN_ 0x0e00 diff --git a/ipc/chromium/src/base/dir_reader_bsd.h b/ipc/chromium/src/base/dir_reader_bsd.h @@ -13,7 +13,6 @@ #include <dirent.h> #include <errno.h> #include <fcntl.h> -#include <stdint.h> #include <unistd.h> #include "base/logging.h" diff --git a/ipc/chromium/src/base/set_process_title_linux.cc b/ipc/chromium/src/base/set_process_title_linux.cc @@ -46,7 +46,6 @@ #include <fcntl.h> #include <stdarg.h> #include <stddef.h> -#include <stdint.h> #include <stdio.h> #include <string.h> #include <unistd.h> diff --git a/ipc/chromium/src/mojo/core/ports/port_locker.h b/ipc/chromium/src/mojo/core/ports/port_locker.h @@ -5,8 +5,6 @@ #ifndef MOJO_CORE_PORTS_PORT_LOCKER_H_ #define MOJO_CORE_PORTS_PORT_LOCKER_H_ -#include <stdint.h> - #include "base/logging.h" #include "mojo/core/ports/port_ref.h" diff --git a/ipc/glue/ProtocolMessageUtils.h b/ipc/glue/ProtocolMessageUtils.h @@ -7,7 +7,6 @@ #ifndef IPC_GLUE_PROTOCOLMESSAGEUTILS_H #define IPC_GLUE_PROTOCOLMESSAGEUTILS_H -#include <stdint.h> #include "base/string_util.h" #include "chrome/common/ipc_channel.h" #include "chrome/common/ipc_message_utils.h" diff --git a/ipc/glue/SerializedStructuredCloneBuffer.h b/ipc/glue/SerializedStructuredCloneBuffer.h @@ -7,7 +7,6 @@ #ifndef __IPC_GLUE_SERIALIZEDSTRUCTUREDCLONEBUFFER_H__ #define __IPC_GLUE_SERIALIZEDSTRUCTUREDCLONEBUFFER_H__ -#include <cstdint> #include "chrome/common/ipc_message.h" #include "chrome/common/ipc_message_utils.h" #include "js/AllocPolicy.h" diff --git a/js/public/ValueArray.h b/js/public/ValueArray.h @@ -12,8 +12,6 @@ #include "mozilla/Assertions.h" // MOZ_ASSERT #include "mozilla/Attributes.h" // MOZ_IMPLICIT, MOZ_RAII -#include <stdint.h> // size_t - #include "js/CallArgs.h" // JS::CallArgs #include "js/GCVector.h" // JS::RootedVector #include "js/RootingAPI.h" // JS::AutoGCRooter, JS::{,Mutable}Handle diff --git a/js/src/builtin/intl/FormatBuffer.h b/js/src/builtin/intl/FormatBuffer.h @@ -12,7 +12,6 @@ #include "mozilla/TextUtils.h" #include <stddef.h> -#include <stdint.h> #include "js/AllocPolicy.h" #include "js/TypeDecls.h" diff --git a/js/src/gc/Allocator.h b/js/src/gc/Allocator.h @@ -9,8 +9,6 @@ #ifndef gc_Allocator_h #define gc_Allocator_h -#include <stdint.h> - #include "gc/AllocKind.h" #include "gc/GCEnum.h" #include "js/HeapAPI.h" diff --git a/js/src/gc/RelocationOverlay.h b/js/src/gc/RelocationOverlay.h @@ -13,8 +13,6 @@ #include "mozilla/Assertions.h" -#include <stdint.h> - #include "gc/Cell.h" namespace js { diff --git a/js/src/jit/UnrollLoops.h b/js/src/jit/UnrollLoops.h @@ -7,8 +7,6 @@ #ifndef jit_UnrollLoops_h #define jit_UnrollLoops_h -#include <stdint.h> - namespace js { namespace jit { diff --git a/js/src/jit/riscv64/extension/extension-riscv-a.h b/js/src/jit/riscv64/extension/extension-riscv-a.h @@ -4,8 +4,6 @@ #ifndef jit_riscv64_extension_Extension_riscv_a_h_ #define jit_riscv64_extension_Extension_riscv_a_h_ -#include <stdint.h> - #include "jit/riscv64/extension/base-assembler-riscv.h" #include "jit/riscv64/Register-riscv64.h" namespace js { diff --git a/js/src/jit/riscv64/extension/extension-riscv-m.h b/js/src/jit/riscv64/extension/extension-riscv-m.h @@ -5,8 +5,6 @@ #ifndef jit_riscv64_extension_Extension_riscv_m_h_ #define jit_riscv64_extension_Extension_riscv_m_h_ -#include <stdint.h> - #include "jit/riscv64/extension/base-assembler-riscv.h" #include "jit/riscv64/Register-riscv64.h" namespace js { diff --git a/js/src/jit/riscv64/extension/extension-riscv-zifencei.h b/js/src/jit/riscv64/extension/extension-riscv-zifencei.h @@ -5,8 +5,6 @@ #ifndef jit_riscv64_extension_Extension_riscv_zifencei_h_ #define jit_riscv64_extension_Extension_riscv_zifencei_h_ -#include <stdint.h> - #include "jit/riscv64/extension/base-assembler-riscv.h" namespace js { namespace jit { diff --git a/js/src/threading/ConditionVariable.h b/js/src/threading/ConditionVariable.h @@ -10,7 +10,6 @@ #include "mozilla/PlatformConditionVariable.h" #include "mozilla/TimeStamp.h" -#include <stdint.h> #include <utility> #if !defined(XP_WIN) && !defined(__wasi__) # include <pthread.h> diff --git a/js/src/threading/Thread.h b/js/src/threading/Thread.h @@ -9,7 +9,6 @@ #include "mozilla/TimeStamp.h" -#include <stdint.h> #include <type_traits> #include <utility> diff --git a/js/src/util/Memory.h b/js/src/util/Memory.h @@ -11,7 +11,6 @@ #include "mozilla/Attributes.h" #include <stddef.h> -#include <stdint.h> #include <string.h> #include <type_traits> diff --git a/layout/base/nsPresArena.h b/layout/base/nsPresArena.h @@ -10,8 +10,6 @@ #ifndef nsPresArena_h___ #define nsPresArena_h___ -#include <stdint.h> - #include "mozilla/ArenaAllocator.h" #include "mozilla/ArenaObjectID.h" #include "mozilla/MemoryChecking.h" // Note: Do not remove this, needed for MOZ_HAVE_MEM_CHECKS below diff --git a/mfbt/MruCache.h b/mfbt/MruCache.h @@ -7,7 +7,6 @@ #ifndef mozilla_MruCache_h #define mozilla_MruCache_h -#include <cstdint> #include <type_traits> #include <utility> diff --git a/mfbt/PodOperations.h b/mfbt/PodOperations.h @@ -18,7 +18,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" -#include <cstdint> #include <cstring> #include <limits> #include <type_traits> diff --git a/mfbt/TaggedAnonymousMemory.cpp b/mfbt/TaggedAnonymousMemory.cpp @@ -13,6 +13,7 @@ # include <sys/prctl.h> # include <sys/syscall.h> # include <unistd.h> +# include <stdint.h> # include "mozilla/Assertions.h" diff --git a/mfbt/Types.h b/mfbt/Types.h @@ -16,7 +16,6 @@ /* Expose all <stdint.h> types and size_t. */ #include <stddef.h> -#include <stdint.h> /* Implement compiler and linker macros needed for APIs. */ diff --git a/mfbt/Utf8.cpp b/mfbt/Utf8.cpp @@ -12,7 +12,6 @@ #include "mozilla/Utf8.h" #include <stddef.h> -#include <stdint.h> MFBT_API bool mozilla::detail::IsValidUtf8(const void* aCodeUnits, size_t aCount) { diff --git a/modules/libmar/sign/nss_secutil.h b/modules/libmar/sign/nss_secutil.h @@ -14,7 +14,6 @@ #include "hasht.h" #include "cert.h" #include "keyhi.h" -#include <stdint.h> typedef struct { enum { diff --git a/mozglue/misc/AutoProfilerLabel.h b/mozglue/misc/AutoProfilerLabel.h @@ -10,6 +10,7 @@ #include "mozilla/Attributes.h" #include "mozilla/Types.h" +#include <cstdint> #include <tuple> // The Gecko Profiler defines AutoProfilerLabel, an RAII class for diff --git a/mozglue/misc/PlatformConditionVariable.h b/mozglue/misc/PlatformConditionVariable.h @@ -7,8 +7,6 @@ #ifndef mozilla_ConditionVariable_h #define mozilla_ConditionVariable_h -#include <stdint.h> - #include "mozilla/PlatformMutex.h" #include "mozilla/TimeStamp.h" #if !defined(XP_WIN) && !defined(__wasi__) diff --git a/mozglue/misc/ProcessType.h b/mozglue/misc/ProcessType.h @@ -10,6 +10,8 @@ #include "mozilla/Attributes.h" #include "mozilla/Types.h" +#include <cstdint> + // This enum is not dense. See GeckoProcessTypes.h for details. enum GeckoProcessType { #define GECKO_PROCESS_TYPE(enum_value, enum_name, string_name, proc_typename, \ diff --git a/mozglue/misc/RuntimeExceptionModule.cpp b/mozglue/misc/RuntimeExceptionModule.cpp @@ -6,8 +6,6 @@ #include "RuntimeExceptionModule.h" -#include <cstdint> - #include "mozilla/ProcessType.h" #if defined(XP_WIN) diff --git a/mozglue/misc/SIMD.h b/mozglue/misc/SIMD.h @@ -8,6 +8,7 @@ #define mozilla_SIMD_h #include "mozilla/Types.h" +#include <cstdint> namespace mozilla { // A collection of SIMD-implemented algorithms. Some of these exist in the CRT. diff --git a/mozglue/misc/SSE.h b/mozglue/misc/SSE.h @@ -11,6 +11,8 @@ // for definition of MFBT_DATA #include "mozilla/Types.h" +#include <cstdint> + /** * The public interface of this header consists of a set of macros and * functions for Intel CPU features. diff --git a/mozglue/misc/WindowsDpiInitialization.h b/mozglue/misc/WindowsDpiInitialization.h @@ -6,6 +6,7 @@ #ifndef MOZILLA_MOZGLUE_MISC_WINDOWSDPIINITIALIZATION_H_ #define MOZILLA_MOZGLUE_MISC_WINDOWSDPIINITIALIZATION_H_ #include "mozilla/Types.h" +#include <cstdint> namespace mozilla { diff --git a/security/sandbox/linux/SandboxInfo.h b/security/sandbox/linux/SandboxInfo.h @@ -8,6 +8,7 @@ #define mozilla_SandboxInfo_h #include "mozilla/Types.h" +#include <cstdint> // Information on what parts of sandboxing are enabled in this build // and/or supported by the system. diff --git a/toolkit/components/antitracking/StoragePrincipalHelper.h b/toolkit/components/antitracking/StoragePrincipalHelper.h @@ -7,7 +7,6 @@ #ifndef mozilla_StoragePrincipalHelper_h #define mozilla_StoragePrincipalHelper_h -#include <cstdint> #include "ErrorList.h" #include "nsStringFwd.h" diff --git a/toolkit/xre/MacLaunchHelper.h b/toolkit/xre/MacLaunchHelper.h @@ -6,7 +6,6 @@ #ifndef MacLaunchHelper_h_ #define MacLaunchHelper_h_ -#include <stdint.h> #include <unistd.h> #ifdef __OBJC__ diff --git a/tools/lint/includes/std.py b/tools/lint/includes/std.py @@ -424,6 +424,70 @@ api["type_traits"].extend( ) capi = { + "stdint.h": [ + "int8_t", + "int16_t", + "int32_t", + "int64_t", + "intN_t", + "int_fast8_t", + "int_fast16_t", + "int_fast32_t", + "int_fast64_t", + "int_fastN_t", + "int_least8_t", + "int_least16_t", + "int_least32_t", + "int_least64_t", + "int_leastN_t", + "intmax_t", + "intptr_t", + "uint8_t", + "uint16_t", + "uint32_t", + "uint64_t", + "uintN_t", + "uint_fast8_t", + "uint_fast16_t", + "uint_fast32_t", + "uint_fast64_t", + "uint_fastN_t", + "uint_least8_t", + "uint_least16_t", + "uint_least32_t", + "uint_least64_t", + "uint_leastN_t", + "uintmax_t", + "uintptr_t", + "INTN_MIN", + "INTN_MAX", + "UINTN_MAX", + "INT_FASTN_MIN", + "INT_FASTN_MAX", + "UINT_FASTN_MAX", + "INT_LEASTN_MIN", + "INT_LEASTN_MAX", + "UINT_LEASTN_MAX", + "INTMAX_MIN", + "INTMAX_MAX", + "UINTMAX_MAX", + "INTPTR_MIN", + "INTPTR_MAX", + "UINTPTR_MAX", + "PTRDIFF_MIN", + "PTRDIFF_MAX", + "SIZE_MAX", + "SIG_ATOMIC_MIN", + "SIG_ATOMIC_MAX", + "WCHAR_MIN", + "WCHAR_MAX", + "WINT_MIN", + "WINT_MAX", + "INTN_C", + "UINTN_C", + "INTMAX_C", + "UINTMAX_C", + ], "stddef.h": [ "NULL", "offsetof", diff --git a/widget/ContentEvents.h b/widget/ContentEvents.h @@ -6,8 +6,6 @@ #ifndef mozilla_ContentEvents_h__ #define mozilla_ContentEvents_h__ -#include <stdint.h> - #include "mozilla/BasicEvents.h" #include "mozilla/dom/DataTransfer.h" #include "mozilla/dom/EventTarget.h" diff --git a/widget/gtk/vaapitest/vaapitest.cpp b/widget/gtk/vaapitest/vaapitest.cpp @@ -13,7 +13,6 @@ #include <string.h> #include <unistd.h> #include <getopt.h> -#include <stdint.h> #if defined(MOZ_ASAN) || defined(FUZZING) # include <signal.h> diff --git a/widget/gtk/wayland/color-management-v1-protocol.c b/widget/gtk/wayland/color-management-v1-protocol.c @@ -30,7 +30,6 @@ #include <stdbool.h> #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/gtk/wayland/color-representation-v1-protocol.c b/widget/gtk/wayland/color-representation-v1-protocol.c @@ -28,7 +28,6 @@ #include <stdbool.h> #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/gtk/wayland/fractional-scale-v1-protocol.c b/widget/gtk/wayland/fractional-scale-v1-protocol.c @@ -24,7 +24,6 @@ */ #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/gtk/wayland/idle-inhibit-unstable-v1-protocol.c b/widget/gtk/wayland/idle-inhibit-unstable-v1-protocol.c @@ -24,7 +24,6 @@ */ #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/gtk/wayland/kde-appmenu-protocol.c b/widget/gtk/wayland/kde-appmenu-protocol.c @@ -7,7 +7,6 @@ */ #include <stdbool.h> -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/gtk/wayland/linux-dmabuf-unstable-v1-protocol.c b/widget/gtk/wayland/linux-dmabuf-unstable-v1-protocol.c @@ -25,7 +25,6 @@ #include <stdbool.h> #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/gtk/wayland/pointer-constraints-unstable-v1-protocol.c b/widget/gtk/wayland/pointer-constraints-unstable-v1-protocol.c @@ -25,7 +25,6 @@ */ #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #pragma GCC visibility push(default) diff --git a/widget/gtk/wayland/pointer-gestures-unstable-v1-protocol.c b/widget/gtk/wayland/pointer-gestures-unstable-v1-protocol.c @@ -1,6 +1,5 @@ /* Generated by wayland-scanner 1.22.0 */ -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/gtk/wayland/relative-pointer-unstable-v1-protocol.c b/widget/gtk/wayland/relative-pointer-unstable-v1-protocol.c @@ -25,7 +25,6 @@ */ #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #pragma GCC visibility push(default) diff --git a/widget/gtk/wayland/viewporter-protocol.c b/widget/gtk/wayland/viewporter-protocol.c @@ -24,7 +24,6 @@ */ #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #pragma GCC visibility push(default) diff --git a/widget/gtk/wayland/xdg-activation-v1-protocol.c b/widget/gtk/wayland/xdg-activation-v1-protocol.c @@ -25,7 +25,6 @@ */ #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/gtk/wayland/xdg-output-unstable-v1-protocol.c b/widget/gtk/wayland/xdg-output-unstable-v1-protocol.c @@ -24,7 +24,6 @@ */ #include <stdlib.h> -#include <stdint.h> #include <gdk/gdkwayland.h> #include "wayland-util.h" diff --git a/widget/gtk/wayland/xdg-shell-protocol.c b/widget/gtk/wayland/xdg-shell-protocol.c @@ -30,7 +30,6 @@ #include <stdbool.h> #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #pragma GCC visibility push(default) diff --git a/widget/gtk/wayland/xx-pip-v1-protocol.c b/widget/gtk/wayland/xx-pip-v1-protocol.c @@ -25,7 +25,6 @@ #include <stdbool.h> #include <stdlib.h> -#include <stdint.h> #include "wayland-util.h" #ifndef __has_attribute diff --git a/widget/nsIWidgetListener.h b/widget/nsIWidgetListener.h @@ -5,8 +5,6 @@ #ifndef nsIWidgetListener_h__ #define nsIWidgetListener_h__ -#include <stdint.h> - #include "mozilla/EventForwards.h" #include "mozilla/layers/LayersTypes.h" #include "mozilla/TimeStamp.h" diff --git a/xpcom/base/nsAlgorithm.h b/xpcom/base/nsAlgorithm.h @@ -7,8 +7,6 @@ #ifndef nsAlgorithm_h___ #define nsAlgorithm_h___ -#include <cstdint> - // We use these instead of std::min/max because we can't include the algorithm // header in all of XPCOM because the stl wrappers will error out when included // in parts of XPCOM. These functions should never be used outside of XPCOM. diff --git a/xpcom/string/nsASCIIMask.h b/xpcom/string/nsASCIIMask.h @@ -8,6 +8,7 @@ #define nsASCIIMask_h_ #include <array> +#include <cstdint> #include "mozilla/Attributes.h"