changeset 295:2d75ce9fa252 src

when compiling against external dvdread add a compile time macro to identify the case (by means of dvdnav-config --cflags) and include the correct headers in dvdnav.h
author nicodvb
date Sat, 28 Apr 2007 09:27:27 +0000
parents 2146ff691bcd
children 044e33c6ab04
files dvdnav.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dvdnav.h	Tue Apr 24 23:06:22 2007 +0000
+++ b/dvdnav.h	Sat Apr 28 09:27:27 2007 +0000
@@ -37,9 +37,15 @@
 
 #ifndef DVDNAV_COMPILE
 #  include <dvdnav/dvd_types.h>
+#ifdef DVDNAV_USES_EXTERNAL_DVDREAD
+#  include <dvdread/dvd_reader.h>
+#  include <dvdread/nav_types.h>
+#  include <dvdread/ifo_types.h> /* For vm_cmd_t */
+#else
 #  include <dvdnav/dvd_reader.h>
 #  include <dvdnav/nav_types.h>
 #  include <dvdnav/ifo_types.h> /* For vm_cmd_t */
+#endif
 #  include <dvdnav/dvdnav_events.h>
 #endif