unix windows: mingw32 doesn't have realpath(), use _fullpath() instead.
This commit is contained in:
parent
1f2ca1c1f9
commit
a196d08dfc
|
@ -394,7 +394,11 @@ int main(int argc, char **argv) {
|
|||
return usage(argv);
|
||||
}
|
||||
} else {
|
||||
#ifdef __MINGW32__
|
||||
char *basedir = _fullpath(NULL, argv[a], _MAX_PATH);
|
||||
#else
|
||||
char *basedir = realpath(argv[a], NULL);
|
||||
#endif
|
||||
if (basedir == NULL) {
|
||||
fprintf(stderr, "%s: can't open file '%s': [Errno %d] ", argv[0], argv[1], errno);
|
||||
perror("");
|
||||
|
|
Loading…
Reference in New Issue