From 927f32b8bf5cb1bb64795aeca3b427c4e91ba0dc Mon Sep 17 00:00:00 2001 From: Tim Champagne Date: Tue, 22 Apr 2003 23:30:29 +0000 Subject: 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 --- src/input/libdvdread/bswap.h | 2 +- src/input/libdvdread/dvd_reader.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/input/libdvdread') 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 /** -- cgit v1.2.3