We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 314ccdc commit 4ab7d6bCopy full SHA for 4ab7d6b
flatbuffers/util.h
@@ -222,7 +222,11 @@ inline std::string AbsolutePath(const std::string &filepath) {
222
#else
223
#ifdef _WIN32
224
char abs_path[MAX_PATH];
225
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
226
+ return _fullpath(abs_path, filepath.c_str(), MAX_PATH)
227
+#else
228
return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr)
229
+#endif
230
231
char abs_path[PATH_MAX];
232
return realpath(filepath.c_str(), abs_path)
0 commit comments