Guard more system headers by FMT_MODULE (#4006)

* Guard more system headers by `FMT_MODULE`

* Merge FMT_MODULE and FMT_IMPORT_STD
This commit is contained in:
LoveSy
2024-06-14 10:53:51 -07:00
committed by GitHub
parent 98dd673cf8
commit 8687315e86
14 changed files with 69 additions and 65 deletions
+3 -3
View File
@@ -8,8 +8,8 @@
#ifndef FMT_OS_H_
#define FMT_OS_H_
#include <cerrno>
#ifndef FMT_IMPORT_STD
#ifndef FMT_MODULE
# include <cerrno>
# include <cstddef>
# include <cstdio>
# include <system_error> // std::system_error
@@ -18,7 +18,7 @@
#include "format.h"
#if defined __APPLE__ || defined(__FreeBSD__)
# if FMT_HAS_INCLUDE(<xlocale.h>)
# if FMT_HAS_INCLUDE(<xlocale.h>) && !defined(FMT_MODULE)
# include <xlocale.h> // for LC_NUMERIC_MASK on OS X
# endif
#endif