fix: use FMT_HAS_INCLUDE instead of __has_include

This commit is contained in:
hotwatermorning 2023-11-03 02:40:39 +09:00 committed by Victor Zverovich
parent acaf83f40f
commit b35d4e40fe

View File

@ -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")