SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 7efd26c548f3ce1f1969a53c7ce5b1ed96a42f7b parent 70332621cb6e0534943df1ea24ace26e4bf2e7bf Author: Lior Halphon <LIJI32@gmail.com> Date: Wed, 24 Aug 2022 23:59:38 +0300 Allow building with older SDL versions Diffstat:
| M | SDL/gui.c | 19 | +++++++++++++++++++ |
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/SDL/gui.c b/SDL/gui.c @@ -321,6 +321,25 @@ static void recalculate_menu_height(void) } } +#if SDL_COMPILEDVERSION < 2014 +int SDL_OpenURL(const char *url) +{ + char *string = NULL; +#ifdef __APPLE__ + asprintf(&string, "open '%s'", url); +#else +#ifdef _WIN32 + asprintf(&string, "explorer '%s'", url); +#else + asprintf(&string, "xdg-open '%s'", url); +#endif +#endif + int ret = system(string); + free(string); + return ret; +} +#endif + static char audio_recording_menu_item[] = "Start Audio Recording"; static void sponsor(unsigned index)
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.