diff --git a/module/magic_enum.cppm b/module/magic_enum.cppm index e4898cb..32c760f 100644 --- a/module/magic_enum.cppm +++ b/module/magic_enum.cppm @@ -1,6 +1,9 @@ module; #include +#if __has_include() +#include +#endif #ifndef MAGIC_ENUM_USE_STD_MODULE #include #endif @@ -74,3 +77,9 @@ export namespace std { using std::formatter; } #endif + +#if defined(FMT_VERSION) +export namespace fmt { + using fmt::formatter; +} +#endif