summaryrefslogtreecommitdiffstats
path: root/mfbt/Attributes.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /mfbt/Attributes.h
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mfbt/Attributes.h')
-rw-r--r--mfbt/Attributes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mfbt/Attributes.h b/mfbt/Attributes.h
index b4b0316a3a..3be46cf5a8 100644
--- a/mfbt/Attributes.h
+++ b/mfbt/Attributes.h
@@ -1031,4 +1031,12 @@
# define MOZ_EMPTY_BASES
#endif
+// XXX: GCC somehow does not allow attributes before lambda return types, while
+// clang requires so. See also bug 1627007.
+#ifdef __clang__
+# define MOZ_CAN_RUN_SCRIPT_BOUNDARY_LAMBDA MOZ_CAN_RUN_SCRIPT_BOUNDARY
+#else
+# define MOZ_CAN_RUN_SCRIPT_BOUNDARY_LAMBDA
+#endif
+
#endif /* mozilla_Attributes_h */