core: rconf: use _fullpath in place of realpath on Windows
realpath() function is not provided on Windows, so add ifdefs to
swtich to _fullpath() on MSVC. These two functions should have
the same functionality.
@@ -449,7 +449,11 @@ static int mk_rconf_path_set(struct mk_rconf *conf, char *file)
char *end;
char path[PATH_MAX + 1];
+#ifdef _MSC_VER
+ p = _fullpath(path, file, PATH_MAX + 1);
+#else
p = realpath(file, path);
+#endif
if (!p) {
return -1;
}
