[vlc-commits] OMX: try to fix compilation issue on INT_MAX

Jean-Baptiste Kempf git at videolan.org
Thu Sep 29 15:34:57 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Sep 29 15:34:02 2011 +0200| [7d3897bb6527c450e2fdfe89c1b6d321a00a1526] | committer: Jean-Baptiste Kempf

OMX: try to fix compilation issue on INT_MAX

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

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

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index fd272bf..d11b317 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -30,15 +30,17 @@
 
 #include <dlfcn.h>
 #if defined(USE_IOMX)
-#include "iomx.h"
-#define dll_open(name) iomx_dlopen(name)
-#define dll_close(handle) iomx_dlclose(handle)
-#define dlsym(handle, name) iomx_dlsym(handle, name)
+# include "iomx.h"
+# define dll_open(name) iomx_dlopen(name)
+# define dll_close(handle) iomx_dlclose(handle)
+# define dlsym(handle, name) iomx_dlsym(handle, name)
 #else
-#define dll_open(name) dlopen( name, RTLD_NOW )
-#define dll_close(handle) dlclose(handle)
+# define dll_open(name) dlopen( name, RTLD_NOW )
+# define dll_close(handle) dlclose(handle)
 #endif
 
+#include <limits.h>
+
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_codec.h>



More information about the vlc-commits mailing list