summaryrefslogtreecommitdiff
path: root/src/input/libdvdread
diff options
context:
space:
mode:
authorTim Champagne <tchamp@users.sourceforge.net>2003-04-22 23:30:29 +0000
committerTim Champagne <tchamp@users.sourceforge.net>2003-04-22 23:30:29 +0000
commit927f32b8bf5cb1bb64795aeca3b427c4e91ba0dc (patch)
treef1bb3dccce867b7bf96e20dc8074f933dee7fef6 /src/input/libdvdread
parent9d422a9e3c7cbd0d3dfdf8c077f24f9a8f035cec (diff)
downloadxine-lib-927f32b8bf5cb1bb64795aeca3b427c4e91ba0dc.tar.gz
xine-lib-927f32b8bf5cb1bb64795aeca3b427c4e91ba0dc.tar.bz2
Additional changes for win32/msvc port; This is my first real commit so please be gentle with me; Everything builds except for the win32 ui
CVS patchset: 4650 CVS date: 2003/04/22 23:30:29
Diffstat (limited to 'src/input/libdvdread')
-rw-r--r--src/input/libdvdread/bswap.h2
-rw-r--r--src/input/libdvdread/dvd_reader.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/input/libdvdread/bswap.h b/src/input/libdvdread/bswap.h
index 9c7402957..6eb9e37f2 100644
--- a/src/input/libdvdread/bswap.h
+++ b/src/input/libdvdread/bswap.h
@@ -65,7 +65,7 @@
* functionality!
*/
-#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__)
+#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(_MSC_VER)
#define B2N_16(x) \
x = ((((x) & 0xff00) >> 8) | \
(((x) & 0x00ff) << 8))
diff --git a/src/input/libdvdread/dvd_reader.h b/src/input/libdvdread/dvd_reader.h
index cc4ba5489..9f609dfd8 100644
--- a/src/input/libdvdread/dvd_reader.h
+++ b/src/input/libdvdread/dvd_reader.h
@@ -21,6 +21,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(_MSC_VER)
+typedef long ssize_t;
+#endif /* _MSC_VER */
+
#include <sys/types.h>
/**