1
0
Fork 0
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:
Lassi Helynranta 2025-06-11 19:47:09 +03:00 committed by GitHub
parent 627d0eb242
commit aa724339dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,10 +11,21 @@ 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