Skip to content

Commit

Permalink
Tighten up test for std::filesystem with gcc 7.5 [MAGP-1356]
Browse files Browse the repository at this point in the history
  • Loading branch information
iainrussell committed Dec 19, 2023
1 parent 7547561 commit 3fa5658
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/web/MagConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@
#include "Value.h"


#if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
#define STD_FILESYSTEM_INCLUDE_MISSING 0
#ifdef __has_include
#if !__has_include(<filesystem>)
#define STD_FILESYSTEM_INCLUDE_MISSING 1
#endif
#endif


#if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || (__cplusplus >= 201703L) && !STD_FILESYSTEM_INCLUDE_MISSING)
#include <filesystem>
namespace fs = std::filesystem;
#else
Expand Down Expand Up @@ -579,4 +587,4 @@ bool PaletteLibrary::find(string& name, Palette& out) {
}
return false;

}
}

0 comments on commit 3fa5658

Please sign in to comment.