win32: Include config.h before anything else. Fix mpegdemux LIBADD

Because config.h defines __MSVCRT_VERSION__, which should be defined
before inclusion of any system header.

Also fixes mpegdemux Makefile.am LIBADD typo.

Fixes #606665
This commit is contained in:
2010-01-11 22:41:57 +03:00 committed by Sebastian Dröge
parent d61abce8e4
commit b3f0b029f3
7 changed files with 23 additions and 22 deletions

View file

@ -17,8 +17,10 @@
* Boston, MA 02111-1307, USA.
*/
#define FLOAT_SAMPLES 1
#include <soundtouch/BPMDetect.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* FIXME: workaround for SoundTouch.h of version 1.3.1 defining those
* variables while it shouldn't. */
#undef VERSION
@ -29,10 +31,8 @@
#undef PACKAGE_BUGREPORT
#undef PACKAGE
/* FIXME: keep it here to avoid PACKAGE* redefinition warnings */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define FLOAT_SAMPLES 1
#include <soundtouch/BPMDetect.h>
#include <gst/audio/audio.h>
#include <gst/audio/gstaudiofilter.h>

View file

@ -17,8 +17,10 @@
*
*/
#define FLOAT_SAMPLES 1
#include <soundtouch/SoundTouch.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
/* FIXME: workaround for SoundTouch.h of version 1.3.1 defining those
* variables while it shouldn't. */
#undef VERSION
@ -29,9 +31,8 @@
#undef PACKAGE_BUGREPORT
#undef PACKAGE
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#define FLOAT_SAMPLES 1
#include <soundtouch/SoundTouch.h>
#include <gst/gst.h>
#include <gst/controller/gstcontroller.h>

View file

@ -37,13 +37,13 @@
* the buffer
*/
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
#include <gst/audio/audio.h>
#include "gstsignalprocessor.h"

View file

@ -45,12 +45,12 @@
* </refsect2>
*/
#include <string.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
#include "gstaacparse.h"

View file

@ -39,12 +39,12 @@
* </refsect2>
*/
#include <string.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
#include "gstamrparse.h"

View file

@ -24,13 +24,13 @@
*/
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
#include "gsth264parse.h"
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",

View file

@ -17,7 +17,7 @@ libgstmpegdemux_la_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) $(GST_CFLAGS) $(LIBOIL_CFLAGS)
libgstmpegdemux_la_LIBADD = \
$(GST_PLUGINS_BASE_CFLAGS) -lgsttag-$(GST_MAJORMINOR) \
$(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_MAJORMINOR) \
$(GST_BASE_LIBS) $(GST_LIBS) $(LIBOIL_LIBS)
libgstmpegdemux_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstmpegdemux_la_LIBTOOLFLAGS = --tag=disable-static