macosx: make compatible with 10.7-10.11 SDK

This commit is contained in:
tmkk 2017-10-30 18:23:12 +09:00
parent d05d0b7d39
commit 81d838cb55
4 changed files with 18 additions and 1 deletions

View File

@ -233,6 +233,10 @@ enum
#define kCommandColorButtonBase 0x59000000
#define kCIFilterNamePrefKey CFSTR("CoreImageFilterName")
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
#define truncEnd 0
#endif
typedef struct {
char name[256];
char displayName[256];

View File

@ -237,6 +237,10 @@ static pascal OSStatus RomInfoEventHandler (EventHandlerCallRef, EventRef, void
static pascal OSStatus AutofireTabEventHandler (EventHandlerCallRef, EventRef, void *);
static pascal OSStatus AutofireWindowEventHandler (EventHandlerCallRef, EventRef, void *);
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
extern "C" FMFont FMGetFontFromATSFontRef (ATSFontRef iFont);
#endif
static OSStatus UpdateTextControlView (HIViewRef control)
{

View File

@ -214,13 +214,16 @@
#include "mac-os.h"
#include "mac-multicart.h"
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
#define truncEnd 0
#endif
static pascal OSStatus MultiCartEventHandler (EventHandlerCallRef, EventRef, void *);
static pascal OSStatus MultiCartPaneEventHandler (EventHandlerCallRef, EventRef, void *);
static int multiCartDragHilite;
static Boolean multiCartDialogResult;
void InitMultiCart (void)
{
CFStringRef keyRef, pathRef;

View File

@ -222,6 +222,12 @@
static Handle GetScreenAsRawHandle (int, int);
static void ExportCGImageToPNGFile (CGImageRef, const char *);
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
typedef struct QDPict* QDPictRef;
extern "C" QDPictRef QDPictCreateWithProvider (CGDataProviderRef provider);
extern "C" void QDPictRelease (QDPictRef pictRef);
extern "C" OSStatus QDPictDrawToCGContext (CGContextRef ctx, CGRect rect, QDPictRef pictRef);
#endif
static Handle GetScreenAsRawHandle (int destWidth, int destHeight)
{