Compatibility fixes for OSX PPC
This commit is contained in:
parent
5af0e58288
commit
d7899c51aa
|
@ -286,6 +286,10 @@ static void frontend_darwin_get_name(char *s, size_t len)
|
||||||
#endif
|
#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)
|
static void frontend_darwin_get_os(char *s, size_t len, int *major, int *minor)
|
||||||
{
|
{
|
||||||
#if defined(IOS)
|
#if defined(IOS)
|
||||||
|
|
|
@ -404,6 +404,10 @@ static void cocoagl_gfx_ctx_show_mouse(void *data, bool state)
|
||||||
#endif
|
#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,
|
static bool cocoagl_gfx_ctx_set_video_mode(void *data,
|
||||||
video_frame_info_t *video_info,
|
video_frame_info_t *video_info,
|
||||||
unsigned width, unsigned height, bool fullscreen)
|
unsigned width, unsigned height, bool fullscreen)
|
||||||
|
@ -446,7 +450,7 @@ static bool cocoagl_gfx_ctx_set_video_mode(void *data,
|
||||||
}
|
}
|
||||||
#endif
|
#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)
|
if (g_major == 4 && g_minor == 1)
|
||||||
{
|
{
|
||||||
attributes[6] = NSOpenGLPFAOpenGLProfile;
|
attributes[6] = NSOpenGLPFAOpenGLProfile;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#include "../../retroarch.h"
|
#include "../../retroarch.h"
|
||||||
#include "../../tasks/tasks_internal.h"
|
#include "../../tasks/tasks_internal.h"
|
||||||
|
|
||||||
#if HAVE_METAL
|
#ifdef HAVE_METAL
|
||||||
#import <Metal/Metal.h>
|
#import <Metal/Metal.h>
|
||||||
#import <MetalKit/MetalKit.h>
|
#import <MetalKit/MetalKit.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue