From 13bf99f9db7c34bae8e4e5ccc214fd6801d1d3d6 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 10 Apr 2023 08:44:43 -0700 Subject: [PATCH] Enable modules in clang 16 --- src/fmt.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/fmt.cc b/src/fmt.cc index 7823e825..2b62c263 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -1,10 +1,9 @@ module; -#ifndef __cpp_modules -# error Module not supported. + +#if !(defined(__cpp_modules) || FMT_CLANG_VERSION >= 1600) +# error module not supported #endif -// put all implementation-provided headers into the global module fragment -// to prevent attachment to this module #if !defined(_CRT_SECURE_NO_WARNINGS) && defined(_MSC_VER) # define _CRT_SECURE_NO_WARNINGS #endif @@ -12,6 +11,8 @@ module; # define WIN32_LEAN_AND_MEAN #endif +// Put all implementation-provided headers into the global module fragment +// to prevent attachment to this module. #include #include #include