[pulseaudio-discuss] [PATCH 1/3] Include config.h consistently in source files and not in headers

Maarten Bosmans mkbosmans at gmail.com
Wed Aug 10 01:30:13 PDT 2011


---
 src/pulsecore/cpu-orc.c   |    4 ++++
 src/pulsecore/cpu-orc.h   |    4 ----
 src/pulsecore/mime-type.h |    4 ----
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/pulsecore/cpu-orc.c b/src/pulsecore/cpu-orc.c
index d4a1535..21d49ed 100644
--- a/src/pulsecore/cpu-orc.c
+++ b/src/pulsecore/cpu-orc.c
@@ -19,6 +19,10 @@
   USA.
 ***/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "cpu-orc.h"
 
 void pa_cpu_init_orc(pa_cpu_info cpu_info)
diff --git a/src/pulsecore/cpu-orc.h b/src/pulsecore/cpu-orc.h
index 9924d27..d236f7a 100644
--- a/src/pulsecore/cpu-orc.h
+++ b/src/pulsecore/cpu-orc.h
@@ -22,10 +22,6 @@
   USA.
 ***/
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <pulsecore/cpu.h>
 
 /* Orc-optimised bits */
diff --git a/src/pulsecore/mime-type.h b/src/pulsecore/mime-type.h
index db77379..0a1d892 100644
--- a/src/pulsecore/mime-type.h
+++ b/src/pulsecore/mime-type.h
@@ -21,10 +21,6 @@
   USA.
 ***/
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <pulsecore/macro.h>
 #include <pulse/sample.h>
 #include <pulse/channelmap.h>
-- 
1.7.4.1



More information about the pulseaudio-discuss mailing list