diff --git a/module/magic_enum.cppm b/module/magic_enum.cppm index ccf99d4..fd6db90 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 @@ -85,3 +91,9 @@ export namespace std { using std::formatter; } #endif + +#if defined(FMT_VERSION) +export namespace fmt { + using fmt::formatter; +} +#endif