Mercurial > libdvdread4.hg
changeset 30:80045db7439a src
OS/2 support by KO Myung-Hun, komh chollian net
author | diego |
---|---|
date | Thu, 09 Oct 2008 22:04:24 +0000 |
parents | dfcb735f711e |
children | cd0187d307b4 |
files | bswap.h dvd_input.c dvd_reader.c |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bswap.h Thu Sep 25 22:09:59 2008 +0000 +++ b/bswap.h Thu Oct 09 22:04:24 2008 +0000 @@ -73,7 +73,7 @@ * functionality! */ -#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) +#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__) #define B2N_16(x) \ x = ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8))
--- a/dvd_input.c Thu Sep 25 22:09:59 2008 +0000 +++ b/dvd_input.c Thu Oct 09 22:04:24 2008 +0000 @@ -288,13 +288,15 @@ #define CSS_LIB "libdvdcss.2.dylib" #elif defined(WIN32) #define CSS_LIB "libdvdcss.dll" +#elif defined(__OS2__) + #define CSS_LIB "dvdcss.dll" #else #define CSS_LIB "libdvdcss.so.2" #endif dvdcss_library = dlopen(CSS_LIB, RTLD_LAZY); if(dvdcss_library != NULL) { -#if defined(__OpenBSD__) && !defined(__ELF__) +#if defined(__OpenBSD__) && !defined(__ELF__) || defined(__OS2__) #define U_S "_" #else #define U_S
--- a/dvd_reader.c Thu Sep 25 22:09:59 2008 +0000 +++ b/dvd_reader.c Thu Oct 09 22:04:24 2008 +0000 @@ -508,11 +508,11 @@ } fclose( mntfile ); } -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) || defined(__OS2__) auth_drive = DVDOpenImageFile( path, have_css ); #endif -#ifndef _MSC_VER +#if !defined(_MSC_VER) && !defined(__OS2__) if( !dev_name ) { fprintf( stderr, "libdvdread: Couldn't find device name.\n" ); } else if( !auth_drive ) {