mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 03:48:06 +00:00
@@ -24,7 +24,7 @@
|
|||||||
# define _XOPEN_SOURCE 700L
|
# define _XOPEN_SOURCE 700L
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__)
|
||||||
# ifndef WIN32_LEAN_AND_MEAN
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
# endif
|
# endif
|
||||||
@@ -35,7 +35,9 @@
|
|||||||
# include <crtdbg.h>
|
# include <crtdbg.h>
|
||||||
# endif
|
# endif
|
||||||
# include <windows.h> // Must be included before <direct.h>
|
# include <windows.h> // Must be included before <direct.h>
|
||||||
# include <direct.h>
|
# ifndef __CYGWIN__
|
||||||
|
# include <direct.h>
|
||||||
|
# endif
|
||||||
# include <winbase.h>
|
# include <winbase.h>
|
||||||
# undef interface // This is also important because of reasons
|
# undef interface // This is also important because of reasons
|
||||||
#endif
|
#endif
|
||||||
@@ -212,7 +214,7 @@ std::string AbsolutePath(const std::string &filepath) {
|
|||||||
#ifdef FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION
|
#ifdef FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION
|
||||||
return filepath;
|
return filepath;
|
||||||
#else
|
#else
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__)
|
||||||
char abs_path[MAX_PATH];
|
char abs_path[MAX_PATH];
|
||||||
return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr)
|
return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr)
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user