mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 11:44:46 +02:00
Don't use std::system on iOS (#2248)
This commit is contained in:
@@ -200,10 +200,13 @@ FMT_API void report_windows_error(int error_code,
|
|||||||
string_view message) FMT_NOEXCEPT;
|
string_view message) FMT_NOEXCEPT;
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
|
// std::system is not available on iOS (#2248).
|
||||||
|
#ifndef TARGET_OS_IPHONE
|
||||||
template <typename S, typename... Args, typename Char = char_t<S>>
|
template <typename S, typename... Args, typename Char = char_t<S>>
|
||||||
void say(const S& format_str, Args&&... args) {
|
void say(const S& format_str, Args&&... args) {
|
||||||
std::system(format("say \"{}\"", format(format_str, args...)).c_str());
|
std::system(format("say \"{}\"", format(format_str, args...)).c_str());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// A buffered file.
|
// A buffered file.
|
||||||
class buffered_file {
|
class buffered_file {
|
||||||
|
Reference in New Issue
Block a user