Compatibility fixes for OSX PPC

This commit is contained in:
neville 2018-08-30 16:18:51 +02:00
parent 5af0e58288
commit d7899c51aa
3 changed files with 10 additions and 2 deletions

View File

@ -286,6 +286,10 @@ static void frontend_darwin_get_name(char *s, size_t len)
#endif
}
#ifndef MAC_OS_X_VERSION_10_10
#define MAC_OS_X_VERSION_10_10 101000
#endif
static void frontend_darwin_get_os(char *s, size_t len, int *major, int *minor)
{
#if defined(IOS)

View File

@ -404,6 +404,10 @@ static void cocoagl_gfx_ctx_show_mouse(void *data, bool state)
#endif
}
#ifndef MAC_OS_X_VERSION_10_10
#define MAC_OS_X_VERSION_10_10 101000
#endif
static bool cocoagl_gfx_ctx_set_video_mode(void *data,
video_frame_info_t *video_info,
unsigned width, unsigned height, bool fullscreen)
@ -446,7 +450,7 @@ static bool cocoagl_gfx_ctx_set_video_mode(void *data,
}
#endif
#if MAC_OS_X_VERSION_10_10
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
if (g_major == 4 && g_minor == 1)
{
attributes[6] = NSOpenGLPFAOpenGLProfile;

View File

@ -37,7 +37,7 @@
#include "../../retroarch.h"
#include "../../tasks/tasks_internal.h"
#if HAVE_METAL
#ifdef HAVE_METAL
#import <Metal/Metal.h>
#import <MetalKit/MetalKit.h>
#endif