From 4fb6bd28434741070bd0e65301251967ec3d85db Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 19 Mar 2007 10:13:33 +0000 Subject: [PATCH] Conditionally compile af_export instead of having #ifdef around the file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22743 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libaf/Makefile | 2 +- libaf/af_export.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libaf/Makefile b/libaf/Makefile index 67a269d1a7..89b1d397d9 100644 --- a/libaf/Makefile +++ b/libaf/Makefile @@ -9,7 +9,6 @@ SRCS_COMMON = af.c \ af_delay.c \ af_dummy.c \ af_equalizer.c \ - af_export.c \ af_extrastereo.c \ af_format.c \ af_gate.c \ @@ -31,6 +30,7 @@ SRCS_COMMON = af.c \ SRCS_COMMON-$(CONFIG_LIBAVCODEC) += af_lavcresample.c SRCS_COMMON-$(CONFIG_LIBAVCODEC_SO) += af_lavcresample.c +SRCS_COMMON-$(HAVE_SYS_MMAN_H) += af_export.c ifeq ($(TARGET_OS),MINGW32) CFLAGS += -D_IO_H_ diff --git a/libaf/af_export.c b/libaf/af_export.c index f5f134785d..08f0f5dbe2 100644 --- a/libaf/af_export.c +++ b/libaf/af_export.c @@ -14,7 +14,6 @@ #include #include "config.h" -#ifdef HAVE_SYS_MMAN_H #include #include #include @@ -263,5 +262,3 @@ af_info_t af_info_export = { AF_FLAGS_REENTRANT, af_open }; - -#endif /*HAVE_SYS_MMAN_H*/