diff options
Diffstat (limited to 'mfbt/Attributes.h')
-rw-r--r-- | mfbt/Attributes.h | 8 |
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 */ |