[vlc-commits] dvdread: fix compilation with older version < 6.0.0

Jean-Baptiste Kempf git at videolan.org
Tue Apr 28 23:01:32 CEST 2020


vlc/vlc-3.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 28 22:48:08 2020 +0200| [d87cd7b44a98cebeb764332e7f20d18a2cba1e43] | committer: Jean-Baptiste Kempf

dvdread: fix compilation with older version < 6.0.0

This is needed for Debian oldstable, for example

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

 modules/access/dvdread.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index 442b3a0e49..6fab0d25e7 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -60,6 +60,11 @@
 #include <dvdread/nav_read.h>
 #include <dvdread/nav_print.h>
 
+#ifndef DVDREAD_VERSION_CODE
+# define DVDREAD_VERSION_CODE(major, minor, micro) (((major) * 10000) + ((minor) * 100) +  ((micro) * 1))
+# define DVDREAD_VERSION DVDREAD_VERSION_CODE(5,0,3)
+#endif
+
 #include <assert.h>
 #include <limits.h>
 



More information about the vlc-commits mailing list