configure.ac: Check if the compiler supports do { } while (0) macros. This fixes a warning when compiling with g++ 4....

Original commit message from CVS:
* configure.ac:
Check if the compiler supports do { } while (0) macros. This fixes
a warning when compiling with g++ 4.3, resulting in a build failure
because of -Werror.
* ext/mpeg2enc/gstmpeg2encpicturereader.cc:
* ext/mplex/gstmplex.cc:
Include <string.h> for memcpy and friends to fix the build with
gcc 4.3.
* tests/check/Makefile.am:
Remove trailing backslash.
This commit is contained in:
Sebastian Dröge 2008-03-21 14:50:41 +00:00
parent 29d918352b
commit 5f1bb9fd9c
6 changed files with 23 additions and 2 deletions

View file

@ -1,3 +1,18 @@
2008-03-21 Sebastian Dröge <slomo@circular-chaos.org>
* configure.ac:
Check if the compiler supports do { } while (0) macros. This fixes
a warning when compiling with g++ 4.3, resulting in a build failure
because of -Werror.
* ext/mpeg2enc/gstmpeg2encpicturereader.cc:
* ext/mplex/gstmplex.cc:
Include <string.h> for memcpy and friends to fix the build with
gcc 4.3.
* tests/check/Makefile.am:
Remove trailing backslash.
2008-03-20 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/selector/gstinputselector.c:

2
common

@ -1 +1 @@
Subproject commit 170f8e91adc7157f6e708ffa58ca22d10e4e45da
Subproject commit 9a358e5cc3977fd6121f12dd25a358081fd77041

View file

@ -107,6 +107,9 @@ AS_PROG_OBJC
dnl check if the compiler supports '-c' and '-o' options
AM_PROG_CC_C_O
dnl check if the compiler supports do while(0) macros
AG_GST_CHECK_DOWHILE_MACROS
AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")

View file

@ -24,6 +24,7 @@
#endif
#include <encoderparams.hh>
#include <string.h>
#include "gstmpeg2enc.hh"
#include "gstmpeg2encpicturereader.hh"

View file

@ -55,6 +55,8 @@
#include "config.h"
#endif
#include <string.h>
#include "gstmplex.hh"
#include "gstmplexoutputstream.hh"
#include "gstmplexibitstream.hh"

View file

@ -71,7 +71,7 @@ VALGRIND_TESTS_DISABLE = \
check_PROGRAMS = \
generic/states \
$(check_mpeg2enc) \
$(check_mplex) \
$(check_mplex) \
$(check_neon) \
$(check_soup) \
$(check_timidity) \