[gnome-bluetooth/wip/hadess/misc-fixes: 1/2] lib: Simplify config.h inclusion




commit ceb9836d73bb7703cc6cda141fd2ee2615f93740
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Nov 19 11:07:02 2021 +0100

    lib: Simplify config.h inclusion
    
    It's always available, but only useful for sources with translatable
    strings.

 lib/bluetooth-agent.c           | 4 ----
 lib/bluetooth-client.c          | 4 +---
 lib/bluetooth-pairing-dialog.c  | 4 +---
 lib/bluetooth-settings-row.c    | 4 +---
 lib/bluetooth-settings-widget.c | 4 +---
 lib/bluetooth-utils.c           | 4 +---
 lib/pin.c                       | 4 ----
 lib/test-agent.c                | 4 ----
 lib/test-class.c                | 4 ----
 lib/test-client.c               | 4 ----
 10 files changed, 5 insertions(+), 35 deletions(-)
---
diff --git a/lib/bluetooth-agent.c b/lib/bluetooth-agent.c
index 7fadc015..89e04254 100644
--- a/lib/bluetooth-agent.c
+++ b/lib/bluetooth-agent.c
@@ -21,10 +21,6 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <stdio.h>
 #include <gio/gio.h>
 
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 83b73836..6bd784df 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -33,9 +33,7 @@
  * devices and adapters.
  **/
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
 
 #include <string.h>
 #include <glib/gi18n-lib.h>
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index 0f588714..e5501f9d 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -18,9 +18,7 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
 
 #include <gtk/gtk.h>
 
diff --git a/lib/bluetooth-settings-row.c b/lib/bluetooth-settings-row.c
index c79bccb9..a7d9e962 100644
--- a/lib/bluetooth-settings-row.c
+++ b/lib/bluetooth-settings-row.c
@@ -18,9 +18,7 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
 
 #include <gtk/gtk.h>
 
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index 7e9f5ff0..238c6090 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -18,9 +18,7 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
 
 #include <adwaita.h>
 #include <gtk/gtk.h>
diff --git a/lib/bluetooth-utils.c b/lib/bluetooth-utils.c
index 6b025fc9..669882f5 100644
--- a/lib/bluetooth-utils.c
+++ b/lib/bluetooth-utils.c
@@ -32,9 +32,7 @@
  * management utilities.
  **/
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
 
 #include <glib/gi18n-lib.h>
 #include <gtk/gtk.h>
diff --git a/lib/pin.c b/lib/pin.c
index dceb295a..83cf6685 100644
--- a/lib/pin.c
+++ b/lib/pin.c
@@ -21,10 +21,6 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <stdlib.h>
 #include <string.h>
 #include <glib.h>
diff --git a/lib/test-agent.c b/lib/test-agent.c
index 2e32decd..3885bee8 100644
--- a/lib/test-agent.c
+++ b/lib/test-agent.c
@@ -21,10 +21,6 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/lib/test-class.c b/lib/test-class.c
index 35eaafc6..63f9622c 100644
--- a/lib/test-class.c
+++ b/lib/test-class.c
@@ -21,10 +21,6 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <string.h>
 #include <gtk/gtk.h>
 
diff --git a/lib/test-client.c b/lib/test-client.c
index cf3c6625..033a54fa 100644
--- a/lib/test-client.c
+++ b/lib/test-client.c
@@ -21,10 +21,6 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <gtk/gtk.h>
 #include <adwaita.h>
 


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