From 24d91f016cb327b647155c0a8b95505713c96514 Mon Sep 17 00:00:00 2001 From: BearOso Date: Wed, 15 Mar 2023 14:58:07 -0500 Subject: [PATCH] Disable std::filesystem implementation in fscompat.cpp. --- fscompat.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fscompat.cpp b/fscompat.cpp index 6f2080ad..6adfbca0 100644 --- a/fscompat.cpp +++ b/fscompat.cpp @@ -51,7 +51,7 @@ std::string S9xBasenameNoExt(std::string filename) return splitpath(filename).stem; } -#if __cplusplus >= 201703L +#if __cplusplus >= 201703L && 0 #include namespace fs = std::filesystem; @@ -166,6 +166,7 @@ string makepath(const string &drive, const string &dir, const string &stem, cons return output; } +#ifndef _WIN32 void _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext) { char *slash = strrchr((char *)path, SLASH_CHAR); @@ -230,4 +231,5 @@ void _makepath(char *path, const char *drive, const char *dir, const char *fname strcat(path, ext); } } +#endif #endif \ No newline at end of file