[vlc-commits] include config.h in media library sourcefiles

Daniel Mierswa git at videolan.org
Mon Feb 20 17:15:25 CET 2012


vlc | branch: master | Daniel Mierswa <impulze at impulze.org> | Mon Feb 20 15:56:06 2012 +0100| [3c95653a0f02d84b6b02067b9b4eadb05bcef971] | committer: Jean-Baptiste Kempf

include config.h in media library sourcefiles

otherwise asprintf will be undeclared and compilation will fail due to
-Werror-implicit-declaration

Signed-off-by: Daniel Mierswa <impulze at impulze.org>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c95653a0f02d84b6b02067b9b4eadb05bcef971
---

 modules/media_library/sql_delete.c        |    4 ++++
 modules/media_library/sql_media_library.c |    4 ++++
 modules/media_library/sql_search.c        |    4 ++++
 modules/media_library/sql_update.c        |    4 ++++
 4 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/modules/media_library/sql_delete.c b/modules/media_library/sql_delete.c
index b0fb25c..10d4bf8 100644
--- a/modules/media_library/sql_delete.c
+++ b/modules/media_library/sql_delete.c
@@ -25,6 +25,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "sql_media_library.h"
 
 
diff --git a/modules/media_library/sql_media_library.c b/modules/media_library/sql_media_library.c
index 2b4a2b0..9060cc1 100644
--- a/modules/media_library/sql_media_library.c
+++ b/modules/media_library/sql_media_library.c
@@ -25,6 +25,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "sql_media_library.h"
 
 static const char* ppsz_AudioExtensions[] = { EXTENSIONS_AUDIO_CSV, NULL };
diff --git a/modules/media_library/sql_search.c b/modules/media_library/sql_search.c
index 439b580..b6006d2 100644
--- a/modules/media_library/sql_search.c
+++ b/modules/media_library/sql_search.c
@@ -25,6 +25,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "sql_media_library.h"
 
 int Find( media_library_t *p_ml, vlc_array_t *p_result_array, ... )
diff --git a/modules/media_library/sql_update.c b/modules/media_library/sql_update.c
index c10e01f..724ac6e 100644
--- a/modules/media_library/sql_update.c
+++ b/modules/media_library/sql_update.c
@@ -25,6 +25,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "sql_media_library.h"
 
 



More information about the vlc-commits mailing list