mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-04 11:17:38 +00:00
Compilation issue msys2 (#7403)
* Compilation issue msys2 #7399 * Fix flatbuffers compilation issue
This commit is contained in:
parent
6e2791640e
commit
da702cfd8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue