Compilation issue msys2 (#7403)

* Compilation issue msys2 #7399

* Fix flatbuffers compilation issue
This commit is contained in:
Ivan Shynkarenka 2022-08-05 10:10:58 -04:00 committed by GitHub
parent 6e2791640e
commit da702cfd8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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