Commit a196d08d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix windows: mingw32 doesn't have realpath(), use _fullpath() instead.

parent 1f2ca1c1
......@@ -394,7 +394,11 @@ int main(int argc, char **argv) {
return usage(argv);
} else {
#ifdef __MINGW32__
char *basedir = _fullpath(NULL, argv[a], _MAX_PATH);
char *basedir = realpath(argv[a], NULL);
if (basedir == NULL) {
fprintf(stderr, "%s: can't open file '%s': [Errno %d] ", argv[0], argv[1], errno);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment