summaryrefslogtreecommitdiffstats
path: root/loader/module.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-04-06 16:58:39 +0300
committerUoti Urpala <uau@mplayer2.org>2012-04-06 17:45:56 +0300
commite2fc1f640fdf473fdf8f1de6fd1212731b8ffa13 (patch)
tree11127d96adabf22894f4848bdd9bbda67d67542e /loader/module.c
parentb93ed278362185ff980e0ce8f4ab3029f8fe395f (diff)
downloadmpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.bz2
mpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.xz
build: remove OS/2 support
Diffstat (limited to 'loader/module.c')
-rw-r--r--loader/module.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/loader/module.c b/loader/module.c
index aa921c52d6..44769b74da 100644
--- a/loader/module.c
+++ b/loader/module.c
@@ -715,29 +715,9 @@ static int dump_component(char* name, int type, void* orig, ComponentParameters
#ifdef EMU_QTX_API
-#ifdef __OS2__
-uint32_t _System DosQueryMem(void *, uint32_t *, uint32_t *);
-#endif
-
static int is_invalid_ptr_handle(void *p)
{
-#ifdef __OS2__
- uint32_t cb = 1;
- uint32_t fl;
-
- if(DosQueryMem(p, &cb, &fl))
- return 1;
-
- // Occasionally, ptr with 'EXEC' attr is passed.
- // On OS/2, however, malloc() never sets 'EXEC' attr.
- // So ptr with 'EXEC' attr is invalid.
- if(fl & 0x04)
- return 1;
-
- return 0;
-#else
return (uint32_t)p >= 0x60000000;
-#endif
}
static uint32_t ret_array[4096];