mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 12:21:17 +00:00
streamvolume: Define cbrt() if it's not available
Fixes build on Win32, bug #597537.
This commit is contained in:
parent
24b7d2500c
commit
6d40818ec0
2 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue