[MPlayer-cvslog] r22743 - in trunk/libaf: Makefile af_export.c

diego subversion at mplayerhq.hu
Mon Mar 19 11:13:34 CET 2007


Author: diego
Date: Mon Mar 19 11:13:33 2007
New Revision: 22743

Modified:
   trunk/libaf/Makefile
   trunk/libaf/af_export.c

Log:
Conditionally compilate af_export instead of having #ifdef around the file.


Modified: trunk/libaf/Makefile
==============================================================================
--- trunk/libaf/Makefile	(original)
+++ trunk/libaf/Makefile	Mon Mar 19 11:13:33 2007
@@ -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_

Modified: trunk/libaf/af_export.c
==============================================================================
--- trunk/libaf/af_export.c	(original)
+++ trunk/libaf/af_export.c	Mon Mar 19 11:13:33 2007
@@ -14,7 +14,6 @@
 #include <unistd.h>
 #include "config.h"
 
-#ifdef HAVE_SYS_MMAN_H
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <sys/types.h>
@@ -263,5 +262,3 @@ af_info_t af_info_export = {
     AF_FLAGS_REENTRANT,
     af_open
 };
-
-#endif /*HAVE_SYS_MMAN_H*/



More information about the MPlayer-cvslog mailing list