From 553022dc56c8ec9d6996e0c1b8918d3b4818b183 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 24 Apr 2021 06:17:05 -0700 Subject: [PATCH] Don't use std::system on iOS (#2248) --- include/fmt/os.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fmt/os.h b/include/fmt/os.h index 3127b9b0..70c465b5 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -200,10 +200,13 @@ 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 template > void say(const S& format_str, Args&&... args) { std::system(format("say \"{}\"", format(format_str, args...)).c_str()); } +#endif // A buffered file. class buffered_file {