Skip to content
Snippets Groups Projects
Commit 09c3f289 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Kateryna Kostiuk
Browse files

ios-build: use the macros in TargetConditionals.h


- Replaces the TARGET_OS_IOS(seems not used) with macros defined
  in TargetConditionals.h to correctly determine platform target.

- This only replaces the macro in urlhook.cpp preventing the use
  of the system function, which is critical to the iOS build.

Change-Id: I4ba40aefe212bf1279a4813d1cdc2d14ddbd4273
Reviewed-by: default avatarKateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
parent 47f59846
Branches
No related tags found
No related merge requests found
...@@ -29,7 +29,12 @@ int UrlHook::runAction(const std::string &command, const std::string &args) ...@@ -29,7 +29,12 @@ int UrlHook::runAction(const std::string &command, const std::string &args)
const std::string cmd = command + (args.empty() ? "" : " ") + const std::string cmd = command + (args.empty() ? "" : " ") +
"\"" + args + "\" &"; "\"" + args + "\" &";
#if defined(RING_UWP) || defined(TARGET_OS_IOS) #if __APPLE__
#include "TargetConditionals.h"
#if defined(TARGET_IPHONE_SIMULATOR) || defined(TARGET_OS_IPHONE)
return 0;
#endif
#elif defined(RING_UWP)
return 0; return 0;
#else #else
return system(cmd.c_str()); return system(cmd.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment