From 69bdc20a3c1271b58f0d052ffc6b2466c44ef649 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 25 Apr 2021 08:14:36 -0700 Subject: [PATCH] Workaround missing std::system on iOS, take 2 --- include/fmt/os.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index 70c465b5f3b6..14c8c8b6fb8e 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -200,8 +200,8 @@ FMT_API void report_windows_error(int error_code, string_view message) FMT_NOEXCEPT; #endif // _WIN32 -// std::system is not available on iOS (#2248). -#ifndef TARGET_OS_IPHONE +// std::system is not available on some platforms such as iOS (#2248). +#ifdef __OSX__ template > void say(const S& format_str, Args&&... args) { std::system(format("say \"{}\"", format(format_str, args...)).c_str());