[gedit-plugins] Get rid of HAVE_CONFIG_H



commit c2dbad651b8e9aafedde9860774a432e53a30a58
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Dec 9 16:06:32 2019 +0100

    Get rid of HAVE_CONFIG_H
    
    It's specific to Autotools.

 plugins/bookmarks/gedit-bookmarks-app-activatable.c      | 3 ---
 plugins/bookmarks/gedit-bookmarks-plugin.c               | 3 ---
 plugins/bookmarks/meson.build                            | 5 -----
 plugins/drawspaces/gedit-drawspaces-app-activatable.c    | 3 ---
 plugins/drawspaces/gedit-drawspaces-window-activatable.c | 3 ---
 plugins/drawspaces/meson.build                           | 5 -----
 plugins/wordcompletion/gedit-word-completion-plugin.c    | 4 ----
 plugins/wordcompletion/meson.build                       | 5 -----
 8 files changed, 31 deletions(-)
---
diff --git a/plugins/bookmarks/gedit-bookmarks-app-activatable.c 
b/plugins/bookmarks/gedit-bookmarks-app-activatable.c
index 77b134d..86997f4 100644
--- a/plugins/bookmarks/gedit-bookmarks-app-activatable.c
+++ b/plugins/bookmarks/gedit-bookmarks-app-activatable.c
@@ -18,10 +18,7 @@
  * along with gedit. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include <glib/gi18n-lib.h>
 #include <gedit/gedit-app.h>
 #include <gedit/gedit-app-activatable.h>
diff --git a/plugins/bookmarks/gedit-bookmarks-plugin.c b/plugins/bookmarks/gedit-bookmarks-plugin.c
index e30a941..ba30988 100644
--- a/plugins/bookmarks/gedit-bookmarks-plugin.c
+++ b/plugins/bookmarks/gedit-bookmarks-plugin.c
@@ -18,10 +18,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gedit-bookmarks-plugin.h"
 #include "gedit-bookmarks-app-activatable.h"
 #include "messages/messages.h"
diff --git a/plugins/bookmarks/meson.build b/plugins/bookmarks/meson.build
index 265653a..4e09d60 100644
--- a/plugins/bookmarks/meson.build
+++ b/plugins/bookmarks/meson.build
@@ -7,10 +7,6 @@ libbookmarks_deps = [
   gedit_dep,
 ]
 
-libbookmarks_c_args = [
-  '-DHAVE_CONFIG_H',
-]
-
 subdir('messages')
 
 libbookmarks_sha = shared_module(
@@ -18,7 +14,6 @@ libbookmarks_sha = shared_module(
   sources: libbookmarks_sources,
   include_directories: root_include_dir,
   dependencies: libbookmarks_deps,
-  c_args: libbookmarks_c_args,
   install: true,
   install_dir: join_paths(
     pkglibdir,
diff --git a/plugins/drawspaces/gedit-drawspaces-app-activatable.c 
b/plugins/drawspaces/gedit-drawspaces-app-activatable.c
index f8872f3..18e57a9 100644
--- a/plugins/drawspaces/gedit-drawspaces-app-activatable.c
+++ b/plugins/drawspaces/gedit-drawspaces-app-activatable.c
@@ -16,10 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gedit-drawspaces-app-activatable.h"
 #include "gedit-drawspaces-window-activatable.h"
 #include "gedit-drawspaces-view-activatable.h"
diff --git a/plugins/drawspaces/gedit-drawspaces-window-activatable.c 
b/plugins/drawspaces/gedit-drawspaces-window-activatable.c
index ad0c8a1..32bef03 100644
--- a/plugins/drawspaces/gedit-drawspaces-window-activatable.c
+++ b/plugins/drawspaces/gedit-drawspaces-window-activatable.c
@@ -16,10 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gedit-drawspaces-window-activatable.h"
 #include "gedit-drawspaces-view-activatable.h"
 
diff --git a/plugins/drawspaces/meson.build b/plugins/drawspaces/meson.build
index f99f048..042ce9f 100644
--- a/plugins/drawspaces/meson.build
+++ b/plugins/drawspaces/meson.build
@@ -8,10 +8,6 @@ libdrawspaces_deps = [
   gedit_dep,
 ]
 
-libdrawspaces_c_args = [
-  '-DHAVE_CONFIG_H',
-]
-
 libdrawspaces_res = gnome.compile_resources(
   'gedit-drawspaces-resources',
   'gedit-drawspaces.gresource.xml',
@@ -26,7 +22,6 @@ libdrawspaces_sha = shared_module(
   sources: libdrawspaces_sources,
   include_directories: root_include_dir,
   dependencies: libdrawspaces_deps,
-  c_args: libdrawspaces_c_args,
   install: true,
   install_dir: join_paths(
     pkglibdir,
diff --git a/plugins/wordcompletion/gedit-word-completion-plugin.c 
b/plugins/wordcompletion/gedit-word-completion-plugin.c
index 96b683a..4ddfc70 100644
--- a/plugins/wordcompletion/gedit-word-completion-plugin.c
+++ b/plugins/wordcompletion/gedit-word-completion-plugin.c
@@ -18,12 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gedit-word-completion-plugin.h"
-
 #include <glib/gi18n-lib.h>
 #include <gedit/gedit-debug.h>
 #include <gedit/gedit-window.h>
diff --git a/plugins/wordcompletion/meson.build b/plugins/wordcompletion/meson.build
index ed9c550..8a5f34b 100644
--- a/plugins/wordcompletion/meson.build
+++ b/plugins/wordcompletion/meson.build
@@ -6,10 +6,6 @@ libwordcompletion_deps = [
   gedit_dep,
 ]
 
-libwordcompletion_c_args = [
-  '-DHAVE_CONFIG_H',
-]
-
 libwordcompletion_res = gnome.compile_resources(
   'gedit-word-completion-resources',
   'gedit-word-completion.gresource.xml',
@@ -24,7 +20,6 @@ libwordcompletion_sha = shared_module(
   sources: libwordcompletion_sources,
   include_directories: root_include_dir,
   dependencies: libwordcompletion_deps,
-  c_args: libwordcompletion_c_args,
   install: true,
   install_dir: join_paths(
     pkglibdir,


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