diff --git a/src/fmt.cc b/src/fmt.cc index 0a838bb1..2dc4ef2f 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -1,5 +1,11 @@ module; +#ifdef _MSVC_LANG +# define FMT_CPLUSPLUS _MSVC_LANG +#else +# define FMT_CPLUSPLUS __cplusplus +#endif + // Put all implementation-provided headers into the global module fragment // to prevent attachment to this module. #ifndef FMT_IMPORT_STD @@ -15,7 +21,9 @@ module; # include # include # include -# include +# if FMT_CPLUSPLUS > 202002L +# include +# endif # include # include # include