Commit 51ce6cda authored by Thomas Guillem's avatar Thomas Guillem

Fix build when using C99 and C++11

Indeed, C99 doesn't have static_assert and C++11 has it.
parent fcafb389
......@@ -239,7 +239,7 @@ static inline locale_t newlocale(int mask, const char * locale, locale_t base)
}
#endif
#if !defined (HAVE_STATIC_ASSERT)
#if !defined (HAVE_STATIC_ASSERT) && !defined(__cpp_static_assert)
# define _Static_assert(x, s) ((void) sizeof (struct { unsigned:-!(x); }))
# define static_assert _Static_assert
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment