glib/tests/macros: Use #error to provide a clearer error on failures

This commit is contained in:
Marco Trevisan (Treviño)
2022-10-20 16:07:36 +02:00
parent b0b534170a
commit c3aa3e5e40

View File

@@ -26,10 +26,10 @@
#if defined (__APPLE__) || defined (HAVE_COCOA) || defined (HAVE_CARBON)
# ifndef G_OS_UNIX
G_STATIC_ASSERT (FALSE);
#error "G_OS_UNIX is not defined"
# endif
# ifndef G_OS_DARWIN
G_STATIC_ASSERT (FALSE);
#error "G_OS_DARWIN is not defined"
# endif
#endif