Remove HAVE_CONFIG_H defs and uses

Since GLib files are only meant to be built as part of GLib, config.h
always exists, so the checks are more or less pointless.

https://bugzilla.gnome.org/show_bug.cgi?id=793399
This commit is contained in:
Ernestas Kulik
2018-02-19 14:09:10 +02:00
committed by Philip Withnall
parent 9d24c8b223
commit 03e86d000f
49 changed files with 31 additions and 100 deletions

View File

@@ -98,7 +98,6 @@ endforeach
executable('gobject-query', 'gobject-query.c',
install : true,
c_args : ['-DHAVE_CONFIG_H=1'],
dependencies : [libglib_dep, libgobject_dep])
install_data('gobject_gdb.py', install_dir : join_paths(glib_pkgdatadir, 'gdb'))

View File

@@ -38,7 +38,7 @@ foreach test_name : gobject_tests
test_name = 'gobject-private'
endif
exe = executable(test_name, test_src,
c_args : ['-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib-GObject"'],
c_args : ['-DG_LOG_DOMAIN="GLib-GObject"'],
dependencies : deps,
)
test(test_name, exe, env : test_env)
@@ -74,7 +74,7 @@ marshalers_c = custom_target('marshalers_c',
exe = executable('signals',
'signals.c', marshalers_h, marshalers_c,
c_args : ['-DHAVE_CONFIG_H=1', '-DG_LOG_DOMAIN="GLib-GObject"'],
c_args : ['-DG_LOG_DOMAIN="GLib-GObject"'],
dependencies : deps,
)
test('signals', exe, env : test_env)