diff options
| author | Sjors Provoost <[email protected]> | 2019-03-14 11:30:37 +0100 |
|---|---|---|
| committer | Sjors Provoost <[email protected]> | 2019-06-06 11:54:26 +0200 |
| commit | f874e14cd3c84cd412bd3fb42b3ee1706ca6a267 (patch) | |
| tree | 26a3b6fc73c55d01cf1bbba8c00347529ae76d0b /src/util/system.cpp | |
| parent | [build] MSVC: set HAVE_SYSTEM for desktop apps (diff) | |
| download | discoin-f874e14cd3c84cd412bd3fb42b3ee1706ca6a267.tar.xz discoin-f874e14cd3c84cd412bd3fb42b3ee1706ca6a267.zip | |
[build]: check std::system for -[alert|block|wallet]notify
Platforms such as iOs do not support launching a process
through system().
Diffstat (limited to 'src/util/system.cpp')
| -rw-r--r-- | src/util/system.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index 6925bda4e..86606ea44 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -1122,6 +1122,7 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate) } #endif +#if defined(HAVE_SYSTEM) void runCommand(const std::string& strCommand) { if (strCommand.empty()) return; @@ -1133,6 +1134,7 @@ void runCommand(const std::string& strCommand) if (nErr) LogPrintf("runCommand error: system(%s) returned %d\n", strCommand, nErr); } +#endif void SetupEnvironment() { |