diff --git a/module/magic_enum.cppm b/module/magic_enum.cppm index e4898cbfdb..dd4f9dc38d 100644 --- a/module/magic_enum.cppm +++ b/module/magic_enum.cppm @@ -1,7 +1,13 @@ module; #include +#if __has_include() +#include +#endif #ifndef MAGIC_ENUM_USE_STD_MODULE +#if defined(__cpp_lib_format) +#include +#endif #include #endif @@ -74,3 +80,9 @@ export namespace std { using std::formatter; } #endif + +#if defined(FMT_VERSION) +export namespace fmt { + using fmt::formatter; +} +#endif