diff --git a/src/fmt.cc b/src/fmt.cc index 28f4bb821ad8..fb514ad761fc 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -41,8 +41,6 @@ module; # include # include # include - -import std; #endif #include #include @@ -83,6 +81,10 @@ import std; export module fmt; +#ifdef FMT_IMPORT_STD +import std; +#endif + #define FMT_EXPORT export #define FMT_BEGIN_EXPORT export { #define FMT_END_EXPORT }