[libdvdnav-devel] Make libdvdread compile under QNX

Mike Gorchak git at videolan.org
Sun Dec 29 18:24:28 CET 2013


libdvdread | branch: master | Mike Gorchak <mike.gorchak.qnx at gmail.com> | Tue Feb 19 15:20:17 2013 -0800| [f0bcc87c48a919106eeb1d26aeb2431090ad8e51] | committer: Jean-Baptiste Kempf

Make libdvdread compile under QNX

Signed-off-by: Erik Hovland <erik at hovland.org>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=f0bcc87c48a919106eeb1d26aeb2431090ad8e51
---

 src/bswap.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bswap.h b/src/bswap.h
index d4a381d..fdf53dc 100644
--- a/src/bswap.h
+++ b/src/bswap.h
@@ -67,6 +67,12 @@
 #define B2N_32(x) x = be32toh(x)
 #define B2N_64(x) x = be64toh(x)
 
+#elif defined(__QNXNTO__)
+#include <gulliver.h>
+#define B2N_16(x) x = ENDIAN_RET16(x)
+#define B2N_32(x) x = ENDIAN_RET32(x)
+#define B2N_64(x) x = ENDIAN_RET64(x)
+
 /* This is a slow but portable implementation, it has multiple evaluation
  * problems so beware.
  * Old FreeBSD's and Solaris don't have <byteswap.h> or any other such



More information about the libdvdnav-devel mailing list