Commit 6d40818e authored by Sebastian Dröge's avatar Sebastian Dröge

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

Fixes build on Win32, bug #597537.
parent 24b7d250
......@@ -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
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment