Bug 1875481 - Part 1: move MOZ_CAN_RUN_SCRIPT_BOUNDARY_LAMBDA into a shared header r=handyman

Differential Revision: https://phabricator.services.mozilla.com/D200977
This commit is contained in:
Greg Stoll 2024-04-10 00:15:46 +00:00
parent 4f2af575e2
commit fd333e0175
2 changed files with 8 additions and 8 deletions

View file

@ -20,14 +20,6 @@
#include "mozilla/dom/TransformerBinding.h"
#include "nsWrapperCache.h"
// 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
namespace mozilla::dom {
using namespace streams_abstract;

View file

@ -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 */