summaryrefslogtreecommitdiffstats
path: root/path.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 /path.c
parentb93ed278362185ff980e0ce8f4ab3029f8fe395f (diff)
downloadmpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.bz2
mpv-e2fc1f640fdf473fdf8f1de6fd1212731b8ffa13.tar.xz
build: remove OS/2 support
Diffstat (limited to 'path.c')
-rw-r--r--path.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/path.c b/path.c
index b6b87d4e9b..785c48eec9 100644
--- a/path.c
+++ b/path.c
@@ -46,7 +46,6 @@
#include "talloc.h"
-#include "osdep/osdep.h"
#include "osdep/io.h"
char *get_path(const char *filename){
@@ -82,25 +81,6 @@ char *get_path(const char *filename){
exedir[imax]='\0';
homedir = exedir;
}
-#elif defined(__OS2__)
- {
- PPIB ppib;
- char path[260];
-
- // Get process info blocks
- DosGetInfoBlocks(NULL, &ppib);
-
- // Get full path of the executable
- DosQueryModuleName(ppib->pib_hmte, sizeof( path ), path);
-
- // Truncate name part including last backslash
- *strrchr(path, '\\') = 0;
-
- // Convert backslash to slash
- _fnslashify(path);
-
- homedir = path;
- }
#else
return NULL;
#endif