diff --git a/src/util.cpp b/src/util.cpp index 6a0d12b58..4620801cc 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -209,10 +209,10 @@ void EnsureDirExists(const std::string &filepath) { std::string AbsolutePath(const std::string &filepath) { // clang-format off - #if defined(FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) + #ifdef FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION return filepath; #else - #if defined(_WIN32) || defined(_WIN64) + #ifdef _WIN32 char abs_path[MAX_PATH]; return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr) #else