From 69902c1787505a55b92268c155c87daa2b7561aa Mon Sep 17 00:00:00 2001 From: t-wiser Date: Tue, 1 Sep 2020 09:29:34 -0400 Subject: [PATCH] Allow use of in Linux when __has_include is not available (#1848) --- include/fmt/os.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index fec540d8..caf6a4b2 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -29,7 +29,8 @@ #if FMT_HAS_INCLUDE("winapifamily.h") # include #endif -#if (FMT_HAS_INCLUDE() || defined(__APPLE__)) && \ +#if (FMT_HAS_INCLUDE() || defined(__APPLE__) || \ + defined(__linux__)) && \ (!defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)) # include // for O_RDONLY # define FMT_USE_FCNTL 1