[gspell/wip/cmake] Don't depend on HAVE_CONFIG_H to be defined




commit a273bfb355c62cfbc01d89aa055edbe2bac013ef
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date:   Tue Aug 16 16:00:00 2022 +0200

    Don't depend on HAVE_CONFIG_H to be defined
    
    It's specific to Autotools, and I want to move to another build system.

 gspell-app/gspell-app.c                    | 3 ---
 gspell/gspell-checker-dialog.c             | 3 ---
 gspell/gspell-checker.c                    | 3 ---
 gspell/gspell-context-menu.c               | 3 ---
 gspell/gspell-current-word-policy.c        | 3 ---
 gspell/gspell-entry-buffer.c               | 3 ---
 gspell/gspell-entry-utils.c                | 3 ---
 gspell/gspell-entry.c                      | 3 ---
 gspell/gspell-enum-types.c.in              | 3 ---
 gspell/gspell-init.c                       | 3 ---
 gspell/gspell-inline-checker-text-buffer.c | 3 ---
 gspell/gspell-language-chooser-button.c    | 3 ---
 gspell/gspell-language-chooser-dialog.c    | 3 ---
 gspell/gspell-language-chooser.c           | 3 ---
 gspell/gspell-language.c                   | 3 ---
 gspell/gspell-navigator-text-view.c        | 3 ---
 gspell/gspell-navigator.c                  | 3 ---
 gspell/gspell-osx.c                        | 3 ---
 gspell/gspell-text-buffer.c                | 3 ---
 gspell/gspell-text-iter.c                  | 3 ---
 gspell/gspell-text-view.c                  | 3 ---
 gspell/gspell-utils.c                      | 3 ---
 gspell/gspellregion.c                      | 3 ---
 23 files changed, 69 deletions(-)
---
diff --git a/gspell-app/gspell-app.c b/gspell-app/gspell-app.c
index 1017d4d..22e9957 100644
--- a/gspell-app/gspell-app.c
+++ b/gspell-app/gspell-app.c
@@ -24,10 +24,7 @@
  * (hopefully) well.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include <locale.h>
 #include <libintl.h>
 #include <gspell/gspell.h>
diff --git a/gspell/gspell-checker-dialog.c b/gspell/gspell-checker-dialog.c
index 7dbb21d..d2f98e4 100644
--- a/gspell/gspell-checker-dialog.c
+++ b/gspell/gspell-checker-dialog.c
@@ -18,10 +18,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-checker-dialog.h"
 #include <glib/gi18n-lib.h>
 #include "gspell-checker.h"
diff --git a/gspell/gspell-checker.c b/gspell/gspell-checker.c
index 1aef3b4..f36ff1a 100644
--- a/gspell/gspell-checker.c
+++ b/gspell/gspell-checker.c
@@ -18,10 +18,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-checker.h"
 #include "gspell-checker-private.h"
 #include <glib/gi18n-lib.h>
diff --git a/gspell/gspell-context-menu.c b/gspell/gspell-context-menu.c
index 8d715a5..7dc2c7c 100644
--- a/gspell/gspell-context-menu.c
+++ b/gspell/gspell-context-menu.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-context-menu.h"
 #include <glib/gi18n-lib.h>
 
diff --git a/gspell/gspell-current-word-policy.c b/gspell/gspell-current-word-policy.c
index 8b9542e..6835cc5 100644
--- a/gspell/gspell-current-word-policy.c
+++ b/gspell/gspell-current-word-policy.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-current-word-policy.h"
 
 /* An object that decides whether to check the current word. When a word is
diff --git a/gspell/gspell-entry-buffer.c b/gspell/gspell-entry-buffer.c
index cda1dfa..6d671cc 100644
--- a/gspell/gspell-entry-buffer.c
+++ b/gspell/gspell-entry-buffer.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-entry-buffer.h"
 
 /**
diff --git a/gspell/gspell-entry-utils.c b/gspell/gspell-entry-utils.c
index 7c37735..b3885b1 100644
--- a/gspell/gspell-entry-utils.c
+++ b/gspell/gspell-entry-utils.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-entry-utils.h"
 #include <string.h>
 #include "gspell-utils.h"
diff --git a/gspell/gspell-entry.c b/gspell/gspell-entry.c
index 0169f25..6823bea 100644
--- a/gspell/gspell-entry.c
+++ b/gspell/gspell-entry.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-entry.h"
 #include "gspell-entry-private.h"
 #include "gspell-entry-buffer.h"
diff --git a/gspell/gspell-enum-types.c.in b/gspell/gspell-enum-types.c.in
index 477af65..38f0eed 100644
--- a/gspell/gspell-enum-types.c.in
+++ b/gspell/gspell-enum-types.c.in
@@ -1,8 +1,5 @@
 /*** BEGIN file-header ***/
-#if HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-enum-types.h"
 
 /*** END file-header ***/
diff --git a/gspell/gspell-init.c b/gspell/gspell-init.c
index 625c7c7..a84cfa2 100644
--- a/gspell/gspell-init.c
+++ b/gspell/gspell-init.c
@@ -23,10 +23,7 @@
  * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include <glib/gi18n-lib.h>
 #include "gconstructor.h"
 
diff --git a/gspell/gspell-inline-checker-text-buffer.c b/gspell/gspell-inline-checker-text-buffer.c
index 950ea3e..1dbeda5 100644
--- a/gspell/gspell-inline-checker-text-buffer.c
+++ b/gspell/gspell-inline-checker-text-buffer.c
@@ -22,10 +22,7 @@
  * Copyright 2002 - Evan Martin
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-inline-checker-text-buffer.h"
 #include <string.h>
 #include <glib/gi18n-lib.h>
diff --git a/gspell/gspell-language-chooser-button.c b/gspell/gspell-language-chooser-button.c
index 1ebd9ea..0e3b62b 100644
--- a/gspell/gspell-language-chooser-button.c
+++ b/gspell/gspell-language-chooser-button.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-language-chooser-button.h"
 #include <glib/gi18n-lib.h>
 #include "gspell-language-chooser.h"
diff --git a/gspell/gspell-language-chooser-dialog.c b/gspell/gspell-language-chooser-dialog.c
index 6f35b9c..e829604 100644
--- a/gspell/gspell-language-chooser-dialog.c
+++ b/gspell/gspell-language-chooser-dialog.c
@@ -18,10 +18,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-language-chooser-dialog.h"
 #include "gspell-language-chooser.h"
 
diff --git a/gspell/gspell-language-chooser.c b/gspell/gspell-language-chooser.c
index d0e5885..582c2f2 100644
--- a/gspell/gspell-language-chooser.c
+++ b/gspell/gspell-language-chooser.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-language-chooser.h"
 
 /**
diff --git a/gspell/gspell-language.c b/gspell/gspell-language.c
index 3006f66..397fd21 100644
--- a/gspell/gspell-language.c
+++ b/gspell/gspell-language.c
@@ -19,10 +19,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-language.h"
 #include <string.h>
 #include <glib/gi18n-lib.h>
diff --git a/gspell/gspell-navigator-text-view.c b/gspell/gspell-navigator-text-view.c
index 3f68560..1e8e36a 100644
--- a/gspell/gspell-navigator-text-view.c
+++ b/gspell/gspell-navigator-text-view.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-navigator-text-view.h"
 #include <glib/gi18n-lib.h>
 #include "gspell-text-buffer.h"
diff --git a/gspell/gspell-navigator.c b/gspell/gspell-navigator.c
index 239154c..fe56401 100644
--- a/gspell/gspell-navigator.c
+++ b/gspell/gspell-navigator.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-navigator.h"
 
 /**
diff --git a/gspell/gspell-osx.c b/gspell/gspell-osx.c
index 93aaa75..626ad6c 100644
--- a/gspell/gspell-osx.c
+++ b/gspell/gspell-osx.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-osx.h"
 #include <gtkosxapplication.h>
 #import <Cocoa/Cocoa.h>
diff --git a/gspell/gspell-text-buffer.c b/gspell/gspell-text-buffer.c
index db25348..81190c7 100644
--- a/gspell/gspell-text-buffer.c
+++ b/gspell/gspell-text-buffer.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-text-buffer.h"
 
 /**
diff --git a/gspell/gspell-text-iter.c b/gspell/gspell-text-iter.c
index 7840537..edfd19e 100644
--- a/gspell/gspell-text-iter.c
+++ b/gspell/gspell-text-iter.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-text-iter.h"
 #include "gspell-utils.h"
 
diff --git a/gspell/gspell-text-view.c b/gspell/gspell-text-view.c
index e6951c0..055d729 100644
--- a/gspell/gspell-text-view.c
+++ b/gspell/gspell-text-view.c
@@ -17,10 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-text-view.h"
 #include <glib/gi18n-lib.h>
 #include "gspell-inline-checker-text-buffer.h"
diff --git a/gspell/gspell-utils.c b/gspell/gspell-utils.c
index 2482e55..16ee1b9 100644
--- a/gspell/gspell-utils.c
+++ b/gspell/gspell-utils.c
@@ -18,10 +18,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspell-utils.h"
 #include <string.h>
 #include "gspell-text-iter.h"
diff --git a/gspell/gspellregion.c b/gspell/gspellregion.c
index a379ed7..0115871 100644
--- a/gspell/gspellregion.c
+++ b/gspell/gspellregion.c
@@ -22,10 +22,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "gspellregion.h"
 
 /*


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