diff options
-rw-r--r-- | src/app.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -54,6 +54,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
54 | #include <SDL_render.h> | 54 | #include <SDL_render.h> |
55 | #include <SDL_timer.h> | 55 | #include <SDL_timer.h> |
56 | #include <SDL_video.h> | 56 | #include <SDL_video.h> |
57 | #include <SDL_misc.h> | ||
58 | #include <SDL_version.h> | ||
57 | 59 | ||
58 | #include <stdio.h> | 60 | #include <stdio.h> |
59 | #include <stdarg.h> | 61 | #include <stdarg.h> |
@@ -1437,6 +1439,11 @@ iBool handleCommand_App(const char *cmd) { | |||
1437 | } | 1439 | } |
1438 | 1440 | ||
1439 | void openInDefaultBrowser_App(const iString *url) { | 1441 | void openInDefaultBrowser_App(const iString *url) { |
1442 | #if SDL_VERSION_ATLEAST(2, 0, 14) | ||
1443 | if (SDL_OpenURL(cstr_String(url)) == 0) { | ||
1444 | return; | ||
1445 | } | ||
1446 | #endif | ||
1440 | iProcess *proc = new_Process(); | 1447 | iProcess *proc = new_Process(); |
1441 | setArguments_Process(proc, | 1448 | setArguments_Process(proc, |
1442 | #if defined (iPlatformApple) | 1449 | #if defined (iPlatformApple) |