(compile_et.c) Pick the last path delimiter whichever kind of slash it is

This commit is contained in:
Asanka Herath
2009-07-24 02:27:30 -04:00
committed by Love Hornquist Astrand
parent 9d42b10027
commit eef0943c0e

View File

@@ -221,8 +221,16 @@ main(int argc, char **argv)
p = strrchr(filename, '/');
#ifdef BACKSLASH_PATH_DELIM
if (!p)
p = strrchr(filename, '\\');
{
char * bs = strrchr(filename, '\\');
if (p) {
if (p < bs)
p = bs;
} else {
p = bs;
}
}
#endif
if(p)
p++;