mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00: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
d04c9dbff3
commit
d5c7fe43fd
@ -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