mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +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++" {
|
extern "C++" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef FMT_OS
|
||||||
|
# define FMT_OS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
// All library-provided declarations and definitions must be in the module
|
// All library-provided declarations and definitions must be in the module
|
||||||
// purview to be exported.
|
// purview to be exported.
|
||||||
#include "fmt/args.h"
|
#include "fmt/args.h"
|
||||||
@ -90,8 +94,8 @@ extern "C++" {
|
|||||||
#include "fmt/color.h"
|
#include "fmt/color.h"
|
||||||
#include "fmt/compile.h"
|
#include "fmt/compile.h"
|
||||||
#include "fmt/format.h"
|
#include "fmt/format.h"
|
||||||
#if !defined(FMT_OS) || FMT_OS
|
#if FMT_OS
|
||||||
# include "fmt/os.h"
|
# include "fmt/os.h"
|
||||||
#endif
|
#endif
|
||||||
#include "fmt/printf.h"
|
#include "fmt/printf.h"
|
||||||
#include "fmt/std.h"
|
#include "fmt/std.h"
|
||||||
@ -107,4 +111,6 @@ module :private;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "format.cc"
|
#include "format.cc"
|
||||||
#include "os.cc"
|
#if FMT_OS
|
||||||
|
# include "os.cc"
|
||||||
|
#endif
|
Reference in New Issue
Block a user