# HG changeset patch # User diego # Date 1138749848 0 # Node ID 2408715522a724aeb6b6efd73138c67b0c295e7d # Parent 6090c379d49ccad2caeb2f6d730889587dfb0999 Move conditional compilation out of the code and into the build system. diff -r 6090c379d49c -r 2408715522a7 libaf/Makefile --- a/libaf/Makefile Tue Jan 31 10:28:20 2006 +0000 +++ b/libaf/Makefile Tue Jan 31 23:24:08 2006 +0000 @@ -14,7 +14,6 @@ af_format.c \ af_gate.c \ af_hrtf.c \ - af_lavcresample.c \ af_pan.c \ af_resample.c \ af_sub.c \ @@ -34,6 +33,10 @@ endif ifeq ($(CONFIG_LIBAVCODEC),yes) LIBAV_INC += -I../libavcodec +SRCS+=af_lavcresample.c +endif +ifeq ($(CONFIG_LIBAVCODEC_SO),yes) +SRCS+=af_lavcresample.c endif OBJS=$(SRCS:.c=.o) diff -r 6090c379d49c -r 2408715522a7 libaf/af_lavcresample.c --- a/libaf/af_lavcresample.c Tue Jan 31 10:28:20 2006 +0000 +++ b/libaf/af_lavcresample.c Tue Jan 31 23:24:08 2006 +0000 @@ -9,8 +9,6 @@ #include "config.h" #include "af.h" -#ifdef USE_LIBAVCODEC - #ifdef USE_LIBAVCODEC_SO #include #include @@ -188,4 +186,3 @@ AF_FLAGS_REENTRANT, open }; -#endif