From a2c290bc34d3ad1a10347fdc5ecdc7f50dcb90ff Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 4 Sep 2024 17:20:30 -0700 Subject: [PATCH] Suppress a bogus MSVC warning --- src/fmt.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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