mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Compilation issue msys2 (#7403)
* Compilation issue msys2 #7399 * Fix flatbuffers compilation issue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user