Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a196d08d
Commit
a196d08d
authored
Apr 20, 2014
by
Paul Sokolovsky
Browse files
unix windows: mingw32 doesn't have realpath(), use _fullpath() instead.
parent
1f2ca1c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/main.c
View file @
a196d08d
...
...
@@ -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
(
""
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment