Commit 7664728bdf58f008b2e807d5d271820a8532065f
1 parent
50443c98
win32 compile fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1672 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
4 deletions
vl.c
... | ... | @@ -1613,13 +1613,13 @@ CharDriverState *qemu_chr_open(const char *filename) |
1613 | 1613 | return text_console_init(&display_state); |
1614 | 1614 | } else if (!strcmp(filename, "null")) { |
1615 | 1615 | return qemu_chr_open_null(); |
1616 | - } else if (strstart(filename, "file:", &p)) { | |
1616 | + } else | |
1617 | +#ifndef _WIN32 | |
1618 | + if (strstart(filename, "file:", &p)) { | |
1617 | 1619 | return qemu_chr_open_file_out(p); |
1618 | 1620 | } else if (strstart(filename, "pipe:", &p)) { |
1619 | 1621 | return qemu_chr_open_pipe(p); |
1620 | - } else | |
1621 | -#ifndef _WIN32 | |
1622 | - if (!strcmp(filename, "pty")) { | |
1622 | + } else if (!strcmp(filename, "pty")) { | |
1623 | 1623 | return qemu_chr_open_pty(); |
1624 | 1624 | } else if (!strcmp(filename, "stdio")) { |
1625 | 1625 | return qemu_chr_open_stdio(); | ... | ... |