mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
fix MSVC warnings for module
This commit is contained in:
parent
a413fcc9c4
commit
0084a0c92d
1 changed files with 9 additions and 0 deletions
|
|
@ -11,10 +11,19 @@ export module magic_enum;
|
|||
import std;
|
||||
|
||||
extern "C++" {
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#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>
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue