mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Don't include os.cc in the module if it is disabled via FMT_OS
This commit is contained in:
12
src/fmt.cc
12
src/fmt.cc
@ -83,6 +83,10 @@ export module fmt;
|
||||
extern "C++" {
|
||||
#endif
|
||||
|
||||
#ifndef FMT_OS
|
||||
# define FMT_OS 1
|
||||
#endif
|
||||
|
||||
// All library-provided declarations and definitions must be in the module
|
||||
// purview to be exported.
|
||||
#include "fmt/args.h"
|
||||
@ -90,8 +94,8 @@ extern "C++" {
|
||||
#include "fmt/color.h"
|
||||
#include "fmt/compile.h"
|
||||
#include "fmt/format.h"
|
||||
#if !defined(FMT_OS) || FMT_OS
|
||||
# include "fmt/os.h"
|
||||
#if FMT_OS
|
||||
# include "fmt/os.h"
|
||||
#endif
|
||||
#include "fmt/printf.h"
|
||||
#include "fmt/std.h"
|
||||
@ -107,4 +111,6 @@ module :private;
|
||||
#endif
|
||||
|
||||
#include "format.cc"
|
||||
#include "os.cc"
|
||||
#if FMT_OS
|
||||
# include "os.cc"
|
||||
#endif
|
Reference in New Issue
Block a user