mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 15:28:35 +00:00
fix: use FMT_HAS_INCLUDE instead of __has_include
This commit is contained in:
parent
acaf83f40f
commit
b35d4e40fe
@ -13,14 +13,14 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <system_error> // std::system_error
|
#include <system_error> // std::system_error
|
||||||
|
|
||||||
|
#include "format.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
|
||||||
|
|
||||||
#include "format.h"
|
|
||||||
|
|
||||||
#ifndef FMT_USE_FCNTL
|
#ifndef FMT_USE_FCNTL
|
||||||
// UWP doesn't provide _pipe.
|
// UWP doesn't provide _pipe.
|
||||||
# if FMT_HAS_INCLUDE("winapifamily.h")
|
# if FMT_HAS_INCLUDE("winapifamily.h")
|
||||||
|
Loading…
Reference in New Issue
Block a user