mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
fix: warnings about included file in module purview in MSVC (#407)
This commit is contained in:
parent
627d0eb242
commit
aa724339dc
1 changed files with 11 additions and 0 deletions
|
|
@ -11,10 +11,21 @@ export module magic_enum;
|
||||||
import std;
|
import std;
|
||||||
|
|
||||||
extern "C++" {
|
extern "C++" {
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
|
#pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable : 5244)
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <magic_enum/magic_enum_all.hpp>
|
#include <magic_enum/magic_enum_all.hpp>
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue