libretro: fix #1013

This commit is contained in:
Stephen Anthony 2024-02-02 11:10:13 -03:30
parent 9ad90d9f47
commit 444dfdc4a9
1 changed files with 12 additions and 4 deletions

View File

@ -183,20 +183,28 @@ class MediaFactory
static bool supportsURL() static bool supportsURL()
{ {
#if defined(SDL_SUPPORT) && SDL_VERSION_ATLEAST(2, 0, 14) #if defined(SDL_SUPPORT)
#if SDL_VERSION_ATLEAST(2, 0, 14)
return true; return true;
#else #else
return false; return false;
#endif #endif
#else
return false;
#endif
} }
static bool openURL(const string& url) static bool openURL(const string& url)
{ {
#if defined(SDL_SUPPORT) && SDL_VERSION_ATLEAST(2, 0, 14) #if defined(SDL_SUPPORT)
#if SDL_VERSION_ATLEAST(2, 0, 14)
return SDLOpenURL(url); return SDLOpenURL(url);
#else #else
return false; return false;
#endif #endif
#else
return false;
#endif
} }
private: private: