mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 713560 - Make MOZ_STATIC_ASSERT, when it expands to C++11 static_cast(), pass its reason argument along to static_cast in more compilers. r=typo-fix
This commit is contained in:
parent
01e745cb0b
commit
19621b98f1
@ -70,15 +70,15 @@
|
||||
# elif defined(__GNUC__)
|
||||
# if (defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L) && \
|
||||
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), #cond)
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), reason)
|
||||
# endif
|
||||
# elif defined(_MSC_VER)
|
||||
# if _MSC_VER >= 1600 /* MSVC 10 */
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), #cond)
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), reason)
|
||||
# endif
|
||||
# elif defined(__HP_aCC)
|
||||
# if __HP_aCC >= 62500 && defined(_HP_CXX0x_SOURCE)
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), #cond)
|
||||
# define MOZ_STATIC_ASSERT(cond, reason) static_assert((cond), reason)
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user