[vlc-commits] OMX IL assumes dlfcn.h, remove redumdant ifdefs

Rémi Denis-Courmont git at videolan.org
Tue Aug 23 17:12:12 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 23 18:00:25 2011 +0300| [92530397fd569936bd34cb57f4677a4f79fd9ec9] | committer: Rémi Denis-Courmont

OMX IL assumes dlfcn.h, remove redumdant ifdefs

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92530397fd569936bd34cb57f4677a4f79fd9ec9
---

 modules/codec/omxil/omxil.c |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index edd7617..3e64385 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -28,9 +28,9 @@
 # include "config.h"
 #endif
 
-#if defined(HAVE_DL_DLOPEN)
-# include <dlfcn.h>
-#endif
+#include <dlfcn.h>
+#define dll_open(name) dlopen( name, RTLD_NOW )
+#define dll_close(handle) dlclose(handle)
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>
@@ -54,17 +54,6 @@ static const char *ppsz_dll_list[] =
 };
 
 /*****************************************************************************
- * defines
- *****************************************************************************/
-#if defined(HAVE_DL_DLOPEN)
-# define dll_open(name) dlopen( name, RTLD_NOW )
-# define dll_close(handle) dlclose(handle)
-#else
-# define dll_open(name) (NULL)
-# define dll_close(handle) (void)0
-#endif
-
-/*****************************************************************************
  * Local prototypes
  *****************************************************************************/
 static int  OpenDecoder( vlc_object_t * );



More information about the vlc-commits mailing list