diff --git a/src/windows/realpath.c b/src/windows/realpath.c index 50a9528f..f3a3fce0 100644 --- a/src/windows/realpath.c +++ b/src/windows/realpath.c @@ -1,9 +1,6 @@ - -#include "realpath.h" - -char* realpath (const char *__restrict path, char *__restrict resolved_path) { - return _fullpath(NULL, path, 0); +WCHAR* realpath (const WCHAR*__restrict path, WCHAR*__restrict resolved_path) { + return _wfullpath(NULL, path, 0); } bool winIsAbsolute(const char* path) { // TODO something more proper return *path && path[1]==':' && (!path[2] || path[2]=='/' || path[2]=='\\'); -} \ No newline at end of file +} diff --git a/src/windows/realpath.h b/src/windows/realpath.h deleted file mode 100644 index bfe555c7..00000000 --- a/src/windows/realpath.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef REALPATH_H -#define REALPATH_H - -char* realpath(const char *__restrict path, char *__restrict resolved_path); -bool winIsAbsolute(const char* path); - -#endif /* REALPATH_H */ \ No newline at end of file