# HG changeset patch # User henry # Date 1117443450 0 # Node ID 667c78f0fc60a4ea73b0671b477d181117eef4b0 # Parent b4c3f02811dd2504e9018821a8f29c8cc02344a4 - 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 diff -r b4c3f02811dd -r 667c78f0fc60 configure --- a/configure Mon May 30 08:45:21 2005 +0000 +++ b/configure Mon May 30 08:57:30 2005 +0000 @@ -2463,10 +2463,10 @@ echocheck "lrintf" cat > $TMPC << EOF #include -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 -r b4c3f02811dd -r 667c78f0fc60 libaf/Makefile --- a/libaf/Makefile Mon May 30 08:45:21 2005 +0000 +++ b/libaf/Makefile Mon May 30 08:57:30 2005 +0000 @@ -9,7 +9,7 @@ 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 -r b4c3f02811dd -r 667c78f0fc60 libfaad2/Makefile --- a/libfaad2/Makefile Mon May 30 08:45:21 2005 +0000 +++ b/libfaad2/Makefile Mon May 30 08:57:30 2005 +0000 @@ -6,7 +6,7 @@ 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.