From 146acb62d3d529525443065c9c196abb6afbe533 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Mon, 13 Apr 2015 18:25:04 +0200 Subject: [PATCH] (iOS) Implement frontend_apple_get_os --- frontend/drivers/platform_apple.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/drivers/platform_apple.c b/frontend/drivers/platform_apple.c index 5df93bbab6..d58d33010b 100644 --- a/frontend/drivers/platform_apple.c +++ b/frontend/drivers/platform_apple.c @@ -25,6 +25,10 @@ #include #include +#ifdef IOS +void get_ios_version(int *major, int *minor); +#endif + static bool CopyModel(char** model, uint32_t *majorRev, uint32_t *minorRev) { #ifdef OSX @@ -136,6 +140,11 @@ static void frontend_apple_get_os(char *name, size_t sizeof_name, int *major, in (void)sizeof_name; (void)major; (void)minor; + +#ifdef IOS + get_ios_version(major, minor); + snprintf(name, sizeof_name, "iOS %d.%d", *major, *minor); +#endif } static void frontend_apple_get_environment_settings(int *argc, char *argv[],