Checks if parity and content options are pointing to the same file.

This commit is contained in:
Andrea Mazzoleni 2012-01-31 21:53:26 +01:00
parent 13596d07ea
commit 31abb8e323
3 changed files with 40 additions and 5 deletions

13
util.c
View file

@ -640,6 +640,19 @@ void pathslash(char* dst, size_t size)
}
}
int pathcmp(const char* a, const char* b)
{
#ifdef _WIN32
char ai[PATH_MAX];
char bi[PATH_MAX];
pathimport(ai, sizeof(ai), a);
pathimport(bi, sizeof(bi), b);
return stricmp(ai, bi);
#else
return strcmp(a, b);
#endif
}
/****************************************************************************/
/* mem */