summaryrefslogtreecommitdiff
path: root/src/utils/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r--src/utils/process.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index efd799987..0675adae3 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -28,6 +28,12 @@
#include "localconsts.h"
+#ifdef USE_SDL2
+#ifdef ANDROID
+#include <SDL_system.h>
+#endif
+#endif
+
#include "debug.h"
const int timeOut = 10;
@@ -244,7 +250,7 @@ bool openBrowser(std::string url)
bool openBrowser(std::string url)
{
#ifdef USE_SDL2
- // +++ need add support
+ SDL_OpenBrowser(replaceAll(url, " ", "").c_str());
#else
SDL_ANDROID_OpenBrowser(replaceAll(url, " ", "").c_str());
#endif