mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +00:00
(platform_apple.c) Add some more defines so that it can compile
and link without HAVE_COCOA or HAVE_COCOATOUCH
This commit is contained in:
parent
9d26a321df
commit
425783672e
@ -15,10 +15,14 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
|
#include <retro_miscellaneous.h>
|
||||||
|
#include <file/file_path.h>
|
||||||
#include "../../apple/common/CFExtensions.h"
|
#include "../../apple/common/CFExtensions.h"
|
||||||
|
|
||||||
#include "../frontend_driver.h"
|
#include "../frontend_driver.h"
|
||||||
#include "../../ui/ui_companion_driver.h"
|
#include "../../ui/ui_companion_driver.h"
|
||||||
|
#include "../../general.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
@ -177,6 +181,7 @@ static void frontend_apple_get_os(char *name, size_t sizeof_name, int *major, in
|
|||||||
static void frontend_apple_get_environment_settings(int *argc, char *argv[],
|
static void frontend_apple_get_environment_settings(int *argc, char *argv[],
|
||||||
void *args, void *params_data)
|
void *args, void *params_data)
|
||||||
{
|
{
|
||||||
|
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
||||||
char temp_dir[PATH_MAX_LENGTH];
|
char temp_dir[PATH_MAX_LENGTH];
|
||||||
char bundle_path_buf[PATH_MAX_LENGTH], home_dir_buf[PATH_MAX_LENGTH];
|
char bundle_path_buf[PATH_MAX_LENGTH], home_dir_buf[PATH_MAX_LENGTH];
|
||||||
CFURLRef bundle_url;
|
CFURLRef bundle_url;
|
||||||
@ -241,9 +246,12 @@ static void frontend_apple_get_environment_settings(int *argc, char *argv[],
|
|||||||
|
|
||||||
CFRelease(bundle_path);
|
CFRelease(bundle_path);
|
||||||
CFRelease(bundle_url);
|
CFRelease(bundle_url);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
||||||
extern void apple_rarch_exited(void);
|
extern void apple_rarch_exited(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
static void frontend_apple_load_content(void)
|
static void frontend_apple_load_content(void)
|
||||||
{
|
{
|
||||||
@ -256,7 +264,9 @@ static void frontend_apple_load_content(void)
|
|||||||
|
|
||||||
static void frontend_apple_shutdown(bool unused)
|
static void frontend_apple_shutdown(bool unused)
|
||||||
{
|
{
|
||||||
|
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
||||||
apple_rarch_exited();
|
apple_rarch_exited();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static int frontend_apple_get_rating(void)
|
static int frontend_apple_get_rating(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user