commit d7194d104d315a28ad1fc9b89c2789f63d42e0aa
parent 8375c2e9278a9ee7735c4aeb5969fd4bfe741018
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Tue, 14 Oct 2025 22:20:00 +0200
Bug 1994157 - Fix compiler detection usage for NativeLayer.h
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/widget/CompositorWidget.h b/widget/CompositorWidget.h
@@ -11,8 +11,9 @@
#include "mozilla/gfx/Rect.h"
#include "mozilla/layers/CompositorOptions.h"
#include "mozilla/layers/LayersTypes.h"
+#include "mozilla/Compiler.h"
-#ifdef MOZ_IS_GCC
+#if MOZ_IS_GCC
# include "mozilla/layers/NativeLayer.h"
#endif
diff --git a/widget/nsIWidget.h b/widget/nsIWidget.h
@@ -15,6 +15,7 @@
#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
+#include "mozilla/Compiler.h"
#include "mozilla/EventForwards.h"
#include "mozilla/Maybe.h"
#include "mozilla/RefPtr.h"
@@ -47,7 +48,7 @@
// GCC needs this to compile RefPtr<NativeLayerRoot> GetNativeLayerRoot(),
// surprisingly.
-#ifdef MOZ_IS_GCC
+#if MOZ_IS_GCC
# include "mozilla/layers/NativeLayer.h"
#endif