(compile_et.c) Pick the last path delimiter whichever kind of slash it is
This commit is contained in:

committed by
Love Hornquist Astrand

parent
9d42b10027
commit
eef0943c0e
@@ -221,8 +221,16 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
p = strrchr(filename, '/');
|
p = strrchr(filename, '/');
|
||||||
#ifdef BACKSLASH_PATH_DELIM
|
#ifdef BACKSLASH_PATH_DELIM
|
||||||
if (!p)
|
{
|
||||||
p = strrchr(filename, '\\');
|
char * bs = strrchr(filename, '\\');
|
||||||
|
|
||||||
|
if (p) {
|
||||||
|
if (p < bs)
|
||||||
|
p = bs;
|
||||||
|
} else {
|
||||||
|
p = bs;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if(p)
|
if(p)
|
||||||
p++;
|
p++;
|
||||||
|
Reference in New Issue
Block a user