[flac-dev] [PATCH] Add missing config.h includes
Cristian Rodríguez
crrodriguez at opensuse.org
Fri May 31 18:55:55 PDT 2013
All C and C++ files must include config.h
---
src/libFLAC++/metadata.cpp | 4 ++++
src/libFLAC++/stream_decoder.cpp | 4 ++++
src/libFLAC++/stream_encoder.cpp | 4 ++++
src/plugin_xmms/charset.c | 4 ++++
src/plugin_xmms/configure.c | 4 ++++
src/plugin_xmms/fileinfo.c | 4 ++++
src/plugin_xmms/http.c | 4 ++++
src/plugin_xmms/plugin.c | 4 ++++
src/plugin_xmms/tag.c | 4 ++++
src/share/grabbag/alloc.c | 4 ++++
src/test_libFLAC++/encoders.cpp | 4 ++++
src/test_libFLAC++/main.cpp | 4 ++++
src/test_libFLAC++/metadata.cpp | 4 ++++
src/test_libFLAC++/metadata_object.cpp | 4 ++++
src/utils/flactimer/main.cpp | 4 ++++
15 files changed, 60 insertions(+)
diff --git a/src/libFLAC++/metadata.cpp b/src/libFLAC++/metadata.cpp
index e03acf3..d6fff06 100644
--- a/src/libFLAC++/metadata.cpp
+++ b/src/libFLAC++/metadata.cpp
@@ -31,6 +31,10 @@
*/
#define __STDC_LIMIT_MACROS 1 /* otherwise SIZE_MAX is not defined for c++ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "share/alloc.h"
#include "FLAC++/metadata.h"
#include "FLAC/assert.h"
diff --git a/src/libFLAC++/stream_decoder.cpp b/src/libFLAC++/stream_decoder.cpp
index 5d68c28..73c5608 100644
--- a/src/libFLAC++/stream_decoder.cpp
+++ b/src/libFLAC++/stream_decoder.cpp
@@ -30,6 +30,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "FLAC++/decoder.h"
#include "FLAC/assert.h"
diff --git a/src/libFLAC++/stream_encoder.cpp b/src/libFLAC++/stream_encoder.cpp
index bbbbeff..a19ec6e 100644
--- a/src/libFLAC++/stream_encoder.cpp
+++ b/src/libFLAC++/stream_encoder.cpp
@@ -30,6 +30,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "FLAC++/encoder.h"
#include "FLAC++/metadata.h"
#include "FLAC/assert.h"
diff --git a/src/plugin_xmms/charset.c b/src/plugin_xmms/charset.c
index 2c5167f..6d86848 100644
--- a/src/plugin_xmms/charset.c
+++ b/src/plugin_xmms/charset.c
@@ -20,6 +20,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "plugin.h"
#include <stdlib.h>
diff --git a/src/plugin_xmms/configure.c b/src/plugin_xmms/configure.c
index 6b83435..3dfddc4 100644
--- a/src/plugin_xmms/configure.c
+++ b/src/plugin_xmms/configure.c
@@ -21,6 +21,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "plugin.h"
#include <stdlib.h>
diff --git a/src/plugin_xmms/fileinfo.c b/src/plugin_xmms/fileinfo.c
index e5e5fb1..54c0c56 100644
--- a/src/plugin_xmms/fileinfo.c
+++ b/src/plugin_xmms/fileinfo.c
@@ -18,6 +18,10 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "plugin.h"
#include <stdlib.h>
diff --git a/src/plugin_xmms/http.c b/src/plugin_xmms/http.c
index c51f1b8..2f31576 100644
--- a/src/plugin_xmms/http.c
+++ b/src/plugin_xmms/http.c
@@ -17,6 +17,10 @@
*/
/* modified for FLAC support by Steven Richman (2003) */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "plugin.h"
#include <sys/types.h>
diff --git a/src/plugin_xmms/plugin.c b/src/plugin_xmms/plugin.c
index c99b52e..50a109f 100644
--- a/src/plugin_xmms/plugin.c
+++ b/src/plugin_xmms/plugin.c
@@ -17,6 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "plugin.h"
#include <limits.h>
diff --git a/src/plugin_xmms/tag.c b/src/plugin_xmms/tag.c
index 19e20ba..6f0f68c 100644
--- a/src/plugin_xmms/tag.c
+++ b/src/plugin_xmms/tag.c
@@ -20,6 +20,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "plugin.h"
#include <stdlib.h>
diff --git a/src/share/grabbag/alloc.c b/src/share/grabbag/alloc.c
index f514bd7..80f099e 100644
--- a/src/share/grabbag/alloc.c
+++ b/src/share/grabbag/alloc.c
@@ -30,6 +30,10 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include "share/alloc.h"
diff --git a/src/test_libFLAC++/encoders.cpp b/src/test_libFLAC++/encoders.cpp
index 309d7af..98b4685 100644
--- a/src/test_libFLAC++/encoders.cpp
+++ b/src/test_libFLAC++/encoders.cpp
@@ -17,6 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "encoders.h"
#include "FLAC/assert.h"
#include "FLAC++/encoder.h"
diff --git a/src/test_libFLAC++/main.cpp b/src/test_libFLAC++/main.cpp
index 78301b2..9932773 100644
--- a/src/test_libFLAC++/main.cpp
+++ b/src/test_libFLAC++/main.cpp
@@ -17,6 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "decoders.h"
#include "encoders.h"
#include "metadata.h"
diff --git a/src/test_libFLAC++/metadata.cpp b/src/test_libFLAC++/metadata.cpp
index 7456762..9de926d 100644
--- a/src/test_libFLAC++/metadata.cpp
+++ b/src/test_libFLAC++/metadata.cpp
@@ -17,6 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "metadata.h"
#include <stdio.h>
diff --git a/src/test_libFLAC++/metadata_object.cpp b/src/test_libFLAC++/metadata_object.cpp
index 7e5ae20..3c5db17 100644
--- a/src/test_libFLAC++/metadata_object.cpp
+++ b/src/test_libFLAC++/metadata_object.cpp
@@ -17,6 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h> /* for malloc() */
#include <string.h> /* for memcmp() */
diff --git a/src/utils/flactimer/main.cpp b/src/utils/flactimer/main.cpp
index c85c3ce..a37fd3c 100644
--- a/src/utils/flactimer/main.cpp
+++ b/src/utils/flactimer/main.cpp
@@ -17,6 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <string.h>
#include <windows.h>
--
1.8.2.3
More information about the flac-dev
mailing list