Skip to content

Commit

Permalink
fix: use FMT_HAS_INCLUDE instead of __has_include
Browse files Browse the repository at this point in the history
  • Loading branch information
hotwatermorning authored and vitaut committed Nov 3, 2023
1 parent acaf83f commit b35d4e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b35d4e4

Please sign in to comment.