streamvolume: Define cbrt() if it's not available

Fixes build on Win32, bug #597537.
This commit is contained in:
Sebastian Dröge 2009-10-07 07:28:15 +02:00
parent 24b7d2500c
commit 6d40818ec0
2 changed files with 10 additions and 0 deletions

View file

@ -202,6 +202,12 @@ AX_CREATE_STDINT_H
dnl *** checks for functions ***
AC_CHECK_FUNCS([localtime_r gmtime_r])
dnl *** checks for math functions ***
LIBS_SAVE=$LIBS
LIBS="$LIBS $LIBM"
AC_CHECK_FUNCS(cbrt)
LIBS=$LIBS_SAVE
dnl *** checks for types/defines ***
dnl Check for FIONREAD ioctl declaration

View file

@ -52,6 +52,10 @@
#include "streamvolume.h"
#include <math.h>
#ifndef HAVE_CBRT
#define cbrt(x) (pow(abs(x),1.0/3.0))
#endif
static void
gst_stream_volume_class_init (GstStreamVolumeInterface * iface)
{