From 576894230f1cb8bf5245bed56af205f1f06d5798 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 28 Mar 2011 01:36:10 +0000 Subject: Fix serdi on Windows (support file:///C:/... URIs) git-svn-id: http://svn.drobilla.net/serd/trunk@132 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/serdi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/serdi.c b/src/serdi.c index 8f58f2e8..9a366770 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -168,8 +168,13 @@ main(int argc, char** argv) if (strncmp((const char*)input, "file:", 5)) { fprintf(stderr, "unsupported URI scheme `%s'\n", input); return 1; +#ifdef __WIN32__ + } else if (!strncmp((const char*)input, "file:///", 8)) { + input += 8; +#else } else if (!strncmp((const char*)input, "file://", 7)) { input += 7; +#endif } else { input += 5; } -- cgit v1.2.1