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

This commit is contained in:
Lassi Helynranta 2025-04-15 14:26:59 +03:00
parent a413fcc9c4
commit 8792a5d7df

View file

@ -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