diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-04-06 16:58:39 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-04-06 17:45:56 +0300 |
commit | e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13 (patch) | |
tree | 11127d96adabf22894f4848bdd9bbda67d67542e /stream/stream_vcd.c | |
parent | b93ed278362185ff980e0ce8f4ab3029f8fe395f (diff) | |
download | mpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.bz2 mpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.xz |
build: remove OS/2 support
Diffstat (limited to 'stream/stream_vcd.c')
-rw-r--r-- | stream/stream_vcd.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/stream/stream_vcd.c b/stream/stream_vcd.c index 5d2eecc27b..e06e381f59 100644 --- a/stream/stream_vcd.c +++ b/stream/stream_vcd.c @@ -22,8 +22,6 @@ #include <windows.h> #endif -#include "osdep/osdep.h" - #include "mp_msg.h" #include "stream.h" #include "m_option.h" @@ -45,8 +43,6 @@ #include "vcd_read_darwin.h" #elif defined(__MINGW32__) || defined(__CYGWIN__) #include "vcd_read_win32.h" -#elif defined(__OS2__) -#include "vcd_read_os2.h" #else #include "vcd_read.h" #endif @@ -141,12 +137,6 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { HANDLE hd; char device[] = "\\\\.\\?:"; #endif -#if defined(__OS2__) - char device[] = "X:"; - HFILE hcd; - ULONG ulAction; - ULONG rc; -#endif if(mode != STREAM_READ #if defined(__MINGW32__) || defined(__CYGWIN__) @@ -170,13 +160,6 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { hd = CreateFile(device, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, NULL); f = _open_osfhandle((long)hd, _O_RDONLY); -#elif defined(__OS2__) - device[0] = p->device[0]; - rc = DosOpen(device, &hcd, &ulAction, 0, FILE_NORMAL, - OPEN_ACTION_OPEN_IF_EXISTS | OPEN_ACTION_FAIL_IF_NEW, - OPEN_ACCESS_READONLY | OPEN_SHARE_DENYNONE | OPEN_FLAGS_DASD, - NULL); - f = rc ? -1 : hcd; #else f=open(p->device,O_RDONLY); #endif |