Move the modules check

This commit is contained in:
Victor Zverovich 2023-04-10 09:28:00 -07:00
parent 77eeb71830
commit 119c6bd16f

View File

@ -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;