projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b137e74
)
fixed compiling with SDL versions before 2.0.14 without SDL_OpenURL()
author
Holger Schemel
<info@artsoft.org>
Mon, 22 Aug 2022 18:34:50 +0000
(20:34 +0200)
committer
Holger Schemel
<info@artsoft.org>
Mon, 22 Aug 2022 18:40:17 +0000
(20:40 +0200)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index 1f1a925de4809b878aa380d0ae5a6d0eda9c7e84..6660e1206556b6cc19b2112eb2dfba0eec0a9604 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-9964,7
+9964,13
@@
void ChangeViewportPropertiesIfNeeded(void)
void OpenURL(char *url)
{
+#if SDL_VERSION_ATLEAST(2,0,14)
SDL_OpenURL(url);
+#else
+ Warn("SDL_OpenURL(\"%s\") not supported by SDL %d.%d.%d!",
+ url, SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
+ Warn("Please upgrade to at least SDL 2.0.14 for URL support!");
+#endif
}
void OpenURLFromHash(SetupFileHash *hash, int hash_key)