From 119c6bd16fc944fcacc32509f0bbe3758d19cdea Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 10 Apr 2023 09:28:00 -0700 Subject: [PATCH] Move the modules check --- src/fmt.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fmt.cc b/src/fmt.cc index c26f0f74..d09c4855 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -1,9 +1,5 @@ module; -#if !(defined(__cpp_modules) || FMT_CLANG_VERSION >= 1600) -# error module not supported -#endif - #if !defined(WIN32_LEAN_AND_MEAN) && defined(_WIN32) # define WIN32_LEAN_AND_MEAN #endif @@ -83,6 +79,10 @@ export module fmt; #include "fmt/printf.h" #include "fmt/xchar.h" +#if !(defined(__cpp_modules) || FMT_CLANG_VERSION >= 1600) +# error modules not supported +#endif + // gcc doesn't yet implement private module fragments #if !FMT_GCC_VERSION module : private;