Merge branch 'fix-cxx-test-muslc' into 'main'

glib/tests: Fix NULL reference on >= C++11

Closes #2582

See merge request GNOME/glib!2439
This commit is contained in:
Philip Withnall 2022-01-18 16:34:50 +00:00
commit 185e0565e0

View File

@ -56,7 +56,11 @@ test_typeof (void)
int
main (int argc, char *argv[])
{
#if __cplusplus >= 201103L
g_test_init (&argc, &argv, nullptr);
#else
g_test_init (&argc, &argv, NULL);
#endif
g_test_add_func ("/C++/typeof", test_typeof);