From 0e79d3567ffff5da177b58b02f8eba0efdf3864e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Sep 2013 16:57:20 +0300 Subject: Add support for opening browser in Android with SDL2. --- src/utils/process.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 +#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 -- cgit v1.2.3-60-g2f50