streamvolume: Define cbrt() if it's not available
Fixes build on Win32, bug #597537.
This commit is contained in:
parent
24b7d2500c
commit
6d40818ec0
@ -202,6 +202,12 @@ AX_CREATE_STDINT_H
|
|||||||
dnl *** checks for functions ***
|
dnl *** checks for functions ***
|
||||||
AC_CHECK_FUNCS([localtime_r gmtime_r])
|
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 *** checks for types/defines ***
|
||||||
|
|
||||||
dnl Check for FIONREAD ioctl declaration
|
dnl Check for FIONREAD ioctl declaration
|
||||||
|
@ -52,6 +52,10 @@
|
|||||||
#include "streamvolume.h"
|
#include "streamvolume.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#ifndef HAVE_CBRT
|
||||||
|
#define cbrt(x) (pow(abs(x),1.0/3.0))
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_stream_volume_class_init (GstStreamVolumeInterface * iface)
|
gst_stream_volume_class_init (GstStreamVolumeInterface * iface)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user