changeset 27369:8598536ca4f5

Set HAVE_DVB in configure when HAVE_DVB_HEAD is defined instead of doing in redundantly in DVB-specific files.
author diego
date Sat, 02 Aug 2008 21:39:29 +0000
parents a50cc6945dfd
children 14c5017f40d2
files configure libao2/ao_mpegpes.c libvo/vo_mpegpes.c
diffstat 3 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Aug 02 20:35:29 2008 +0000
+++ b/configure	Sat Aug 02 21:39:29 2008 +0000
@@ -4566,7 +4566,8 @@
 fi
 echores "$_dvbhead"
 if test "$_dvbhead" = yes ; then
-  _def_dvb='#define HAVE_DVB_HEAD 1'
+  _def_dvb='#define HAVE_DVB 1'
+  _def_dvb_head='#define HAVE_DVB_HEAD 1'
   _def_dvb_in='#define HAS_DVBIN_SUPPORT 1'
   _aomodules="mpegpes(dvb) $_aomodules"
   _vomodules="mpegpes(dvb) $_vomodules"
@@ -4574,6 +4575,7 @@
 
 if test "$_dvbhead" = no && test "$_dvb" = no ; then
   _def_dvb='#undef HAVE_DVB'
+  _def_dvb_head='#undef HAVE_DVB_HEAD'
   _def_dvb_in='#undef HAS_DVBIN_SUPPORT '
   _aomodules="mpegpes(file) $_aomodules"
   _vomodules="mpegpes(file) $_vomodules"
@@ -8673,6 +8675,7 @@
 $_def_ivtv
 $_def_v4l2
 $_def_dvb
+$_def_dvb_head
 $_def_dvb_in
 $_def_svga
 $_def_vesa
--- a/libao2/ao_mpegpes.c	Sat Aug 02 20:35:29 2008 +0000
+++ b/libao2/ao_mpegpes.c	Sat Aug 02 21:39:29 2008 +0000
@@ -10,10 +10,6 @@
 
 #include "config.h"
 
-#ifdef HAVE_DVB_HEAD
-#define HAVE_DVB 1
-#endif
-
 #ifdef HAVE_DVB
 #include <sys/poll.h>
 #include <sys/ioctl.h>
--- a/libvo/vo_mpegpes.c	Sat Aug 02 20:35:29 2008 +0000
+++ b/libvo/vo_mpegpes.c	Sat Aug 02 21:39:29 2008 +0000
@@ -23,9 +23,7 @@
 #include <unistd.h>
 
 #include "mp_msg.h"
-#ifdef HAVE_DVB_HEAD
-#define HAVE_DVB 1
-#endif
+
 #ifdef HAVE_DVB
 #ifndef HAVE_DVB_HEAD
 #include <sys/poll.h>