fix: use FMT_HAS_INCLUDE instead of __has_include

This commit is contained in:
hotwatermorning 2023-11-03 02:40:39 +09:00
parent acaf83f40f
commit b345027fcb

View File

@ -13,8 +13,10 @@
#include <cstdio> #include <cstdio>
#include <system_error> // std::system_error #include <system_error> // std::system_error
#include "core.h"
#if defined __APPLE__ || defined(__FreeBSD__) #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 # include <xlocale.h> // for LC_NUMERIC_MASK on OS X
# endif # endif
#endif #endif