summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-10-20 16:07:36 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-10-20 16:07:36 +0200
commitc3aa3e5e405d323bb29de9d9039184b8db111b1a (patch)
treed7a12ab7ae7885ee527bf1a94df71c891c79b643
parentb0b534170adcf233e49ebcc2cb22c447ee60ae90 (diff)
downloadglib-c3aa3e5e405d323bb29de9d9039184b8db111b1a.tar.gz
glib/tests/macros: Use #error to provide a clearer error on failures
-rw-r--r--glib/tests/macros.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/tests/macros.c b/glib/tests/macros.c
index cbbc0f6de..97d5fcc26 100644
--- a/glib/tests/macros.c
+++ b/glib/tests/macros.c
@@ -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