Skip to content

Commit

Permalink
修复GCC 7.x下的编译
Browse files Browse the repository at this point in the history
  • Loading branch information
cgli authored and TylunasLi committed Jul 19, 2024
1 parent 40a9622 commit 0dc630b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
#include <cstdint>
#include <thread>
#include <vector>
#if defined(__GNUC__) && __GNUC__ < 8
#include <experimental/filesystem>
#else
#include <filesystem>
#endif

#if defined(_WIN32) or defined(_WIN64)
#include <Windows.h>
Expand All @@ -32,7 +36,7 @@
#endif
#endif

#if defined(_MSC_VER) && _MSC_VER <= 1900 // VS 2015
#if (defined(_MSC_VER) && _MSC_VER <= 1900) || (defined(__GNUC__) && __GNUC__ < 8) // VS 2015)
namespace fs = std::experimental::filesystem;
#else
namespace fs = std::filesystem;
Expand Down

0 comments on commit 0dc630b

Please sign in to comment.