Disable std::filesystem implementation in fscompat.cpp.

This commit is contained in:
BearOso 2023-03-15 14:58:07 -05:00
parent 2cb8c0978a
commit 24d91f016c

View File

@ -51,7 +51,7 @@ std::string S9xBasenameNoExt(std::string filename)
return splitpath(filename).stem; return splitpath(filename).stem;
} }
#if __cplusplus >= 201703L #if __cplusplus >= 201703L && 0
#include <filesystem> #include <filesystem>
namespace fs = std::filesystem; namespace fs = std::filesystem;
@ -166,6 +166,7 @@ string makepath(const string &drive, const string &dir, const string &stem, cons
return output; return output;
} }
#ifndef _WIN32
void _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext) void _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext)
{ {
char *slash = strrchr((char *)path, SLASH_CHAR); char *slash = strrchr((char *)path, SLASH_CHAR);
@ -231,3 +232,4 @@ void _makepath(char *path, const char *drive, const char *dir, const char *fname
} }
} }
#endif #endif
#endif