From 1aee7b9246785ebb98c9510e9c4630607846b2b1 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Fri, 2 Feb 2024 11:10:13 -0330 Subject: [PATCH] libretro: fix #1013 --- src/common/MediaFactory.hxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/common/MediaFactory.hxx b/src/common/MediaFactory.hxx index 7c9174cbf..1febd113c 100644 --- a/src/common/MediaFactory.hxx +++ b/src/common/MediaFactory.hxx @@ -183,8 +183,12 @@ class MediaFactory static bool supportsURL() { - #if defined(SDL_SUPPORT) && SDL_VERSION_ATLEAST(2, 0, 14) - return true; + #if defined(SDL_SUPPORT) + #if SDL_VERSION_ATLEAST(2, 0, 14) + return true; + #else + return false; + #endif #else return false; #endif @@ -192,8 +196,12 @@ class MediaFactory static bool openURL(const string& url) { - #if defined(SDL_SUPPORT) && SDL_VERSION_ATLEAST(2, 0, 14) - return SDLOpenURL(url); + #if defined(SDL_SUPPORT) + #if SDL_VERSION_ATLEAST(2, 0, 14) + return SDLOpenURL(url); + #else + return false; + #endif #else return false; #endif