Skip to content

Make clang++ happier when using G_STATIC_ASSERT

Albert Astals Cid requested to merge tsdgeos/glib:make_clang_happier into main

clang++ says it supports _Static_assert but then will complain that it's a C11 extension and that you should not use it in C++ code (which imho is fair enough)

So try to detect a C++ compiler first and then the C compiler, similarly to what is done for the G_NORETURN case

Merge request reports