diff options
author | hotwatermorning <hotwatermorning@gmail.com> | 2023-11-03 02:40:39 +0900 |
---|---|---|
committer | Victor Zverovich <viz@meta.com> | 2023-11-03 15:10:40 -0700 |
commit | b35d4e40fe45ada18ea3cb358a3d3fd2025033fa (patch) | |
tree | 09ef4ab77a77dc6e628069d1d3a44f8c73e55524 | |
parent | acaf83f40fd86814278a1f1b7d092a34a9c08442 (diff) | |
download | fmtlib-b35d4e40fe45ada18ea3cb358a3d3fd2025033fa.tar.gz |
fix: use FMT_HAS_INCLUDE instead of __has_include
-rw-r--r-- | include/fmt/os.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fmt/os.h b/include/fmt/os.h index fd701555..2b517cd4 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -13,14 +13,14 @@ #include <cstdio> #include <system_error> // std::system_error +#include "format.h" + #if defined __APPLE__ || defined(__FreeBSD__) -# if (__cplusplus < 201703L) || __has_include(<xlocale.h>) +# if FMT_HAS_INCLUDE(<xlocale.h>) # include <xlocale.h> // for LC_NUMERIC_MASK on OS X # endif #endif -#include "format.h" - #ifndef FMT_USE_FCNTL // UWP doesn't provide _pipe. # if FMT_HAS_INCLUDE("winapifamily.h") |