[gnome-disk-utility] build: Remove macro definition



commit 66e7ad3ed84edd96a78ba8f251e165b306296606
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Mon Nov 13 19:06:16 2017 +0100

    build: Remove macro definition
    
    meson uses the compiler's HAVE_CONFIG_H macro definiton, inherited
    from autotools behaviours. However it is not necessary.
    
    This patch removes the use of the macro definition.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790303

 meson.build |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index a709dac..3a5dae5 100644
--- a/meson.build
+++ b/meson.build
@@ -42,7 +42,6 @@ fallocate_src = '''
 config_h.set('HAVE_FALLOCATE', cc.run(fallocate_src).returncode())
 
 # compiler flags
-common_flags = ['-DHAVE_CONFIG_H']
 gdu_cflags = []
 
 buildtype = get_option('buildtype')
@@ -85,7 +84,7 @@ if buildtype == 'debug' or buildtype == 'debugoptimized'
   endforeach
 endif
 
-add_project_arguments(common_flags + gdu_cflags, language: 'c')
+add_project_arguments(gdu_cflags, language: 'c')
 
 gmodule_dep = dependency('gmodule-2.0')
 gio_unix_dep = dependency('gio-unix-2.0', version: '>= 2.31.0')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]