mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-07 22:19:12 +00:00
showVersion(): Only check for \ in the path on Windows, the same as
in tmain().
This commit is contained in:
parent
803bc07fa7
commit
4b551b1b96
1 changed files with 5 additions and 1 deletions
|
@ -587,7 +587,11 @@ showVersion(XML_Char *prog)
|
|||
XML_Char *s = prog;
|
||||
XML_Char ch;
|
||||
while ((ch = *s) != 0) {
|
||||
if (ch == '/' || ch == '\\')
|
||||
if (ch == '/'
|
||||
#ifdef WIN32
|
||||
|| ch == '\\'
|
||||
#endif
|
||||
)
|
||||
prog = s + 1;
|
||||
++s;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue