From 4cd21deebca0e75b77d62d8d748aa66453532d9b Mon Sep 17 00:00:00 2001 From: stijn Date: Sat, 3 May 2014 10:26:04 +0200 Subject: 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. --- windows/realpath.h | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 windows/realpath.h (limited to 'windows/realpath.h') 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); -- cgit v1.2.3