feat: include xlocale.h only if exists

This commit is contained in:
hotwatermorning 2023-10-01 14:51:23 +09:00
parent 05dda9490d
commit 05aa783779

View File

@ -13,7 +13,7 @@
#include <cstdio>
#include <system_error> // std::system_error
#if defined __APPLE__ || defined(__FreeBSD__)
#if (defined __APPLE__ || defined(__FreeBSD__)) && __has_include(<xlocale.h>)
# include <xlocale.h> // for LC_NUMERIC_MASK on OS X
#endif