gconf, gsettings: fix config.h includes
authorTanu Kaskinen <tanuk@iki.fi>
Tue, 17 Apr 2018 06:07:35 +0000 (09:07 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 19 Apr 2018 11:38:18 +0000 (14:38 +0300)
config.h should be included by all .c files and none of the .h files.

src/modules/gconf/module-gconf.c
src/modules/gsettings/module-gsettings.c
src/modules/stdin-util.c
src/modules/stdin-util.h

index e5ddf0d..c0f4dde 100644 (file)
@@ -17,7 +17,9 @@
   along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include "../stdin-util.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <sys/types.h>
 #include <sys/wait.h>
@@ -26,6 +28,8 @@
 #include <pulsecore/core-util.h>
 #include <pulsecore/start-child.h>
 
+#include "../stdin-util.h"
+
 PA_MODULE_AUTHOR("Lennart Poettering");
 PA_MODULE_DESCRIPTION("GConf Adapter");
 PA_MODULE_VERSION(PACKAGE_VERSION);
index 7df933d..330eca1 100644 (file)
@@ -17,7 +17,9 @@
   along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include "../stdin-util.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <sys/types.h>
 #include <sys/wait.h>
@@ -26,6 +28,8 @@
 #include <pulsecore/core-util.h>
 #include <pulsecore/start-child.h>
 
+#include "../stdin-util.h"
+
 PA_MODULE_AUTHOR("Sylvain Baubeau");
 PA_MODULE_DESCRIPTION("GSettings Adapter");
 PA_MODULE_VERSION(PACKAGE_VERSION);
index db394ac..37bd1a4 100644 (file)
@@ -17,8 +17,6 @@
   License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include "stdin-util.h"
-
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
index 6b97f23..9177026 100644 (file)
   License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <errno.h>
 #include <stdint.h>
 #include <sys/types.h>