Bug 1080968 - Add support for constexpr and explicit conversions on clang-cl; r=froydnj

--HG--
extra : rebase_source : ef22967d83577e70d5e6e122bf5322f31eeb97d0
This commit is contained in:
Ehsan Akhgari 2014-10-10 18:29:56 -04:00
parent e39bb4d04e
commit 4db1e110ea

View File

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