Merge pull request #2615 from Sonicadvance1/fhu_mingw

FHU/FS: Create WIN32 helpers for some functions.
This commit is contained in:
Mai authored and GitHub committed 2023-04-25 10:09:35 -04:00
commit af15277fc4
3 files changed
+82 -2

No files matched your search

+1 -2
View File
@@ -19,7 +19,6 @@
#include <assert.h>
#include <cstdlib>
#include <functional>
#include <linux/limits.h>
#include <optional>
#include <stddef.h>
#include <stdint.h>
@@ -315,7 +314,7 @@ namespace JSON {
// Expand relative path to absolute
char ExistsTempPath[PATH_MAX];
char *RealPath = realpath(PathName.c_str(), ExistsTempPath);
char *RealPath = FHU::Filesystem::Absolute(PathName.c_str(), ExistsTempPath);
if (RealPath) {
PathName = RealPath;
}