From 0dc630b4f90b03cb2e640e7fd2526f216c00747d Mon Sep 17 00:00:00 2001 From: cgli Date: Fri, 19 Jul 2024 14:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DGCC=207.x=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/utils/utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/utils/utils.h b/include/utils/utils.h index 0721bbb6..4e258119 100644 --- a/include/utils/utils.h +++ b/include/utils/utils.h @@ -14,7 +14,11 @@ #include #include #include +#if defined(__GNUC__) && __GNUC__ < 8 +#include +#else #include +#endif #if defined(_WIN32) or defined(_WIN64) #include @@ -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;