mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1080968 - Add support for constexpr and explicit conversions on clang-cl; r=froydnj
--HG-- extra : rebase_source : ef22967d83577e70d5e6e122bf5322f31eeb97d0
This commit is contained in:
parent
e39bb4d04e
commit
4db1e110ea
@ -65,6 +65,15 @@
|
||||
# define MOZ_HAVE_CXX11_OVERRIDE
|
||||
# define MOZ_HAVE_NEVER_INLINE __declspec(noinline)
|
||||
# define MOZ_HAVE_NORETURN __declspec(noreturn)
|
||||
# ifdef __clang__
|
||||
/* clang-cl probably supports constexpr and explicit conversions. */
|
||||
# if __has_extension(cxx_constexpr)
|
||||
# define MOZ_HAVE_CXX11_CONSTEXPR
|
||||
# endif
|
||||
# if __has_extension(cxx_explicit_conversions)
|
||||
# define MOZ_HAVE_EXPLICIT_CONVERSION
|
||||
# endif
|
||||
# endif
|
||||
#elif defined(__clang__)
|
||||
/*
|
||||
* Per Clang documentation, "Note that marketing version numbers should not
|
||||
|
Loading…
Reference in New Issue
Block a user