Skip to content

Commit a8bf907

Browse files
committed
missing null log handler
1 parent bb49753 commit a8bf907

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project( 'nip4', 'c',
22
# ie. a major after nip2 8.9 for workspace save file versioning
3-
version: '9.0.0-4',
3+
version: '9.0.0-5',
44
license: 'GPL',
55
meson_version: '>=0.64',
66
default_options: [

src/main.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,18 @@ main_load_wsg(const char *filename)
256256
return NULL;
257257
}
258258

259+
/* NULL log handler. Used to suppress output on win32 without DEBUG_FATAL.
260+
*/
261+
#ifndef DEBUG_FATAL
262+
#ifdef OS_WIN32
263+
static void
264+
main_log_null(const char *log_domain, GLogLevelFlags log_level,
265+
const char *message, void *user_data)
266+
{
267+
}
268+
#endif /*OS_WIN32*/
269+
#endif /*!DEBUG_FATAL*/
270+
259271
int
260272
main(int argc, char **argv)
261273
{

0 commit comments

Comments
 (0)