Revert "Compilation issue msys2 (#7403)" (#7407)

This reverts commit da702cfd8f.
This commit is contained in:
Derek Bailey
2022-08-06 10:19:50 -07:00
committed by GitHub
parent 5b207639a1
commit 8d1cc6ac7d

View File

@@ -209,10 +209,10 @@ void EnsureDirExists(const std::string &filepath) {
std::string AbsolutePath(const std::string &filepath) { std::string AbsolutePath(const std::string &filepath) {
// clang-format off // clang-format off
#if defined(FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) #ifdef FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION
return filepath; return filepath;
#else #else
#if defined(_WIN32) || defined(_WIN64) #ifdef _WIN32
char abs_path[MAX_PATH]; char abs_path[MAX_PATH];
return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr) return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr)
#else #else