diff options
author | stijn <stinos@zoho.com> | 2014-05-03 10:26:04 +0200 |
---|---|---|
committer | stijn <stinos@zoho.com> | 2014-05-03 17:38:08 +0200 |
commit | 4cd21deebca0e75b77d62d8d748aa66453532d9b (patch) | |
tree | 0fdf136db5371bb6c69ec27c1ecddcc5c270f50c /windows/realpath.h | |
parent | bff1ff28eec5611a2e963601b98044135694df57 (diff) |
mingw: Add implementation of realpath()
The mingw port used _fullpath() until now, but the behaviour is not exactly
the same as realpath()'s on unix; major difference being that it doesn't
return an error for non-existing files, which would bypass main's error
checking and bail out without any error message.
Also realpath() will return forward slashes only since main() relies on that.
Diffstat (limited to 'windows/realpath.h')
-rw-r--r-- | windows/realpath.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/windows/realpath.h b/windows/realpath.h new file mode 100644 index 000000000..77798acd5 --- /dev/null +++ b/windows/realpath.h @@ -0,0 +1,2 @@ + +extern char *realpath(const char *path, char *resolved_path); |