module; #ifndef __cpp_modules # 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 #if !defined(WIN32_LEAN_AND_MEAN) && defined(_WIN32) # define WIN32_LEAN_AND_MEAN #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if _MSC_VER # include #endif #if defined __APPLE__ || defined(__FreeBSD__) # include #endif #if __has_include() # include #endif #if (__has_include() || defined(__APPLE__) || \ defined(__linux__)) && \ (!defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)) # include # include # include # ifndef _WIN32 # include # else # include # endif #endif #ifdef _WIN32 # include #endif export module fmt; #define FMT_MODULE_EXPORT export #define FMT_MODULE_EXPORT_BEGIN export { #define FMT_MODULE_EXPORT_END } #define FMT_BEGIN_DETAIL_NAMESPACE \ } \ namespace detail { #define FMT_END_DETAIL_NAMESPACE \ } \ export { // all library-provided declarations and definitions // must be in the module purview to be exported #include "fmt/args.h" #include "fmt/chrono.h" #include "fmt/color.h" #include "fmt/compile.h" #include "fmt/format.h" #include "fmt/os.h" #include "fmt/printf.h" #include "fmt/xchar.h" // gcc doesn't yet implement private module fragments #if !FMT_GCC_VERSION module : private; #endif #include "format.cc" #include "os.cc"