[gspell] Replace #if HAVE_CONFIG_H by #ifdef HAVE_CONFIG_H



commit 8d76caf554a98b51a520f7ad80f98e0ba871de09
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Apr 17 12:35:22 2017 +0200

    Replace #if HAVE_CONFIG_H by #ifdef HAVE_CONFIG_H
    
    The #ifdef form is what GtkSourceView and libsoup use, and what the
    gcu-include-config-h script uses:
    https://github.com/swilmet/gnome-c-utils
    
    With the Autotools, in the generated Makefile's it's:
    DEFS = -DHAVE_CONFIG_H
    
    So the #ifdef is slightly better.

 gspell/gspell-checker-dialog.c             |    2 +-
 gspell/gspell-checker.c                    |    2 +-
 gspell/gspell-context-menu.c               |    2 +-
 gspell/gspell-current-word-policy.c        |    2 +-
 gspell/gspell-entry-buffer.c               |    2 +-
 gspell/gspell-entry-utils.c                |    2 +-
 gspell/gspell-entry.c                      |    2 +-
 gspell/gspell-init.c                       |    2 +-
 gspell/gspell-inline-checker-text-buffer.c |    2 +-
 gspell/gspell-language-chooser-button.c    |    2 +-
 gspell/gspell-language-chooser-dialog.c    |    2 +-
 gspell/gspell-language-chooser.c           |    2 +-
 gspell/gspell-language.c                   |    2 +-
 gspell/gspell-navigator-text-view.c        |    2 +-
 gspell/gspell-navigator.c                  |    2 +-
 gspell/gspell-osx.c                        |    2 +-
 gspell/gspell-text-buffer.c                |    2 +-
 gspell/gspell-text-iter.c                  |    2 +-
 gspell/gspell-text-view.c                  |    2 +-
 gspell/gspell-utils.c                      |    2 +-
 gspell/gspellregion.c                      |    2 +-
 21 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/gspell/gspell-checker-dialog.c b/gspell/gspell-checker-dialog.c
index 0fe94cc..e14df80 100644
--- a/gspell/gspell-checker-dialog.c
+++ b/gspell/gspell-checker-dialog.c
@@ -18,7 +18,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-checker.c b/gspell/gspell-checker.c
index 1f9e2ce..aa2cb6f 100644
--- a/gspell/gspell-checker.c
+++ b/gspell/gspell-checker.c
@@ -18,7 +18,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-context-menu.c b/gspell/gspell-context-menu.c
index abf44f8..313656c 100644
--- a/gspell/gspell-context-menu.c
+++ b/gspell/gspell-context-menu.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-current-word-policy.c b/gspell/gspell-current-word-policy.c
index de07d3c..1cd9516 100644
--- a/gspell/gspell-current-word-policy.c
+++ b/gspell/gspell-current-word-policy.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-entry-buffer.c b/gspell/gspell-entry-buffer.c
index da12005..9fe262b 100644
--- a/gspell/gspell-entry-buffer.c
+++ b/gspell/gspell-entry-buffer.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-entry-utils.c b/gspell/gspell-entry-utils.c
index 781a878..3129ff0 100644
--- a/gspell/gspell-entry-utils.c
+++ b/gspell/gspell-entry-utils.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-entry.c b/gspell/gspell-entry.c
index fe96d55..80e042c 100644
--- a/gspell/gspell-entry.c
+++ b/gspell/gspell-entry.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-init.c b/gspell/gspell-init.c
index 719c940..7602586 100644
--- a/gspell/gspell-init.c
+++ b/gspell/gspell-init.c
@@ -23,7 +23,7 @@
  * Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-inline-checker-text-buffer.c b/gspell/gspell-inline-checker-text-buffer.c
index 6cc16f2..9ceec2d 100644
--- a/gspell/gspell-inline-checker-text-buffer.c
+++ b/gspell/gspell-inline-checker-text-buffer.c
@@ -22,7 +22,7 @@
  * Copyright 2002 - Evan Martin
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-language-chooser-button.c b/gspell/gspell-language-chooser-button.c
index c0fb950..9f60048 100644
--- a/gspell/gspell-language-chooser-button.c
+++ b/gspell/gspell-language-chooser-button.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-language-chooser-dialog.c b/gspell/gspell-language-chooser-dialog.c
index 26501e2..f55ebc1 100644
--- a/gspell/gspell-language-chooser-dialog.c
+++ b/gspell/gspell-language-chooser-dialog.c
@@ -18,7 +18,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-language-chooser.c b/gspell/gspell-language-chooser.c
index 0ab4b94..3c79c46 100644
--- a/gspell/gspell-language-chooser.c
+++ b/gspell/gspell-language-chooser.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-language.c b/gspell/gspell-language.c
index be2ee03..6a766e5 100644
--- a/gspell/gspell-language.c
+++ b/gspell/gspell-language.c
@@ -19,7 +19,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-navigator-text-view.c b/gspell/gspell-navigator-text-view.c
index f92cbc4..2e9a66a 100644
--- a/gspell/gspell-navigator-text-view.c
+++ b/gspell/gspell-navigator-text-view.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-navigator.c b/gspell/gspell-navigator.c
index b1ab229..9b5b5de 100644
--- a/gspell/gspell-navigator.c
+++ b/gspell/gspell-navigator.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-osx.c b/gspell/gspell-osx.c
index 1ee4896..68c9e26 100644
--- a/gspell/gspell-osx.c
+++ b/gspell/gspell-osx.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-text-buffer.c b/gspell/gspell-text-buffer.c
index b357a40..5d549d6 100644
--- a/gspell/gspell-text-buffer.c
+++ b/gspell/gspell-text-buffer.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-text-iter.c b/gspell/gspell-text-iter.c
index 3aa0b65..afcb936 100644
--- a/gspell/gspell-text-iter.c
+++ b/gspell/gspell-text-iter.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-text-view.c b/gspell/gspell-text-view.c
index 74fe291..fb2c0f4 100644
--- a/gspell/gspell-text-view.c
+++ b/gspell/gspell-text-view.c
@@ -17,7 +17,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspell-utils.c b/gspell/gspell-utils.c
index af2c5ee..5e67806 100644
--- a/gspell/gspell-utils.c
+++ b/gspell/gspell-utils.c
@@ -18,7 +18,7 @@
  * along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
diff --git a/gspell/gspellregion.c b/gspell/gspellregion.c
index 0f64b0d..82ca5ce 100644
--- a/gspell/gspellregion.c
+++ b/gspell/gspellregion.c
@@ -22,7 +22,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 


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