aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-28 01:36:10 +0000
committerDavid Robillard <d@drobilla.net>2011-03-28 01:36:10 +0000
commit576894230f1cb8bf5245bed56af205f1f06d5798 (patch)
tree50eb16bc456d5cf8da97947bab74e435b10932f8
parent393923f90b9c6646dc81320f0ed3adbc6a4f0755 (diff)
downloadserd-576894230f1cb8bf5245bed56af205f1f06d5798.tar.gz
serd-576894230f1cb8bf5245bed56af205f1f06d5798.tar.bz2
serd-576894230f1cb8bf5245bed56af205f1f06d5798.zip
Fix serdi on Windows (support file:///C:/... URIs)
git-svn-id: http://svn.drobilla.net/serd/trunk@132 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--src/serdi.c5
1 files changed, 5 insertions, 0 deletions
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;
}