summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-30 08:57:30 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-30 08:57:30 +0000
commitc9e396b89868f21a6627c6de960473ea59541da5 (patch)
tree327d6e8168c85f63760edc65feab0d27747cdb5f
parent881f0f083fa7c3888e178d137b2bfdf0168b0a9a (diff)
downloadmpv-c9e396b89868f21a6627c6de960473ea59541da5.tar.bz2
mpv-c9e396b89868f21a6627c6de960473ea59541da5.tar.xz
- correct the argument in configure check for lrintf() to avoid a warning
- add -D_GNU_SOURCE where lrintf() is used, for the cases when -std=gnu99 isn't available git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15597 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure4
-rw-r--r--libaf/Makefile2
-rw-r--r--libfaad2/Makefile2
3 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index a0adc722cc..94c600a0d7 100755
--- a/configure
+++ b/configure
@@ -2463,10 +2463,10 @@ echores "$_gnu99"
echocheck "lrintf"
cat > $TMPC << EOF
#include <math.h>
-int main(void) { long (*foo)(double); foo = lrintf; (void)(*foo)(0.0); return 0; }
+int main(void) { long (*foo)(float); foo = lrintf; (void)(*foo)(0.0); return 0; }
EOF
_lrintf=no
-cc_check $_opt_gnu99 $_ld_lm && _lrintf=yes
+cc_check $_opt_gnu99 -D_GNU_SOURCE $_ld_lm && _lrintf=yes
if test "$_lrintf" = yes ; then
_def_lrintf="#define HAVE_LRINTF 1"
else
diff --git a/libaf/Makefile b/libaf/Makefile
index 5d11fc71fb..1494c36d2e 100644
--- a/libaf/Makefile
+++ b/libaf/Makefile
@@ -9,7 +9,7 @@ af_lavcresample.c af_sweep.c af_hrtf.c format.c af_center.c $(OPTIONAL_SRCS)
OBJS=$(SRCS:.c=.o)
-CFLAGS = $(OPTFLAGS) -I. -Wall $(EXTRA_INC)
+CFLAGS = $(OPTFLAGS) -I. -Wall $(EXTRA_INC) -D_GNU_SOURCE
ifeq ($(TARGET_OS),MINGW32)
CFLAGS += -D_IO_H_
diff --git a/libfaad2/Makefile b/libfaad2/Makefile
index ebbddd505c..e7ff0bbbae 100644
--- a/libfaad2/Makefile
+++ b/libfaad2/Makefile
@@ -6,7 +6,7 @@ include ../config.mak
SRCS = bits.c cfft.c common.c decoder.c drc.c error.c filtbank.c hcr.c huffman.c ic_predict.c is.c lt_predict.c mdct.c mp4.c ms.c output.c pns.c ps_dec.c ps_syntax.c pulse.c rvlc.c sbr_dct.c sbr_dec.c sbr_e_nf.c sbr_fbt.c sbr_hfadj.c sbr_hfgen.c sbr_huff.c sbr_qmf.c sbr_syntax.c sbr_tf_grid.c specrec.c ssr.c ssr_fb.c ssr_ipqf.c syntax.c tns.c
OBJS = $(SRCS:.c=.o)
-CFLAGS = -I. $(OPTFLAGS)
+CFLAGS = -I. $(OPTFLAGS) -D_GNU_SOURCE
# Uncomment this to use the FIXED_POINT implementation of FAAD2.
# This should improve performance, especially for SBR files.