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());