From 3721bf0c8e85574e4c4c8ba42426692c3fc34fae Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 26 May 2019 23:25:08 -0400 Subject: [PATCH] Oops, we have to make the tests work on other platforms too. Done for GTK+. --- unix/main.c | 7 +++++++ unix/uipriv_unix.h | 1 + 2 files changed, 8 insertions(+) diff --git a/unix/main.c b/unix/main.c index 1ab14138..18985887 100644 --- a/unix/main.c +++ b/unix/main.c @@ -52,3 +52,10 @@ void uiQueueMain(void (*f)(void *data), void *data) q->data = data; gdk_threads_add_idle(doqueued, q); } + +void uiprivReportError(const char *prefix, const char *msg, const char *suffix, bool internal) +{ + g_critical("%s: %s. %s", prefix, msg, suffix); + G_BREAKPOINT(); + abort(); // we shouldn't reach here +} diff --git a/unix/uipriv_unix.h b/unix/uipriv_unix.h index 3cc56d0a..0d77ddab 100644 --- a/unix/uipriv_unix.h +++ b/unix/uipriv_unix.h @@ -1,4 +1,5 @@ // 22 april 2015 +#define G_LOG_DOMAIN "libui" #define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_40 #define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_40 #define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_10