From 4473f5425d8eb4728687545e2c2c6317146127f3 Mon Sep 17 00:00:00 2001 From: rogerman Date: Sat, 5 Aug 2017 13:55:28 -0700 Subject: [PATCH] Cocoa Port: Fix compiling issues when building using Xcode 3. --- .../cocoa/DeSmuME (XCode 3).xcodeproj/project.pbxproj | 4 ++-- desmume/src/frontend/cocoa/cocoa_GPU.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/frontend/cocoa/DeSmuME (XCode 3).xcodeproj/project.pbxproj b/desmume/src/frontend/cocoa/DeSmuME (XCode 3).xcodeproj/project.pbxproj index 50f55f513..4aff9a4a0 100644 --- a/desmume/src/frontend/cocoa/DeSmuME (XCode 3).xcodeproj/project.pbxproj +++ b/desmume/src/frontend/cocoa/DeSmuME (XCode 3).xcodeproj/project.pbxproj @@ -5597,7 +5597,7 @@ ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "-I./../../"; PRODUCT_NAME = "DeSmuME (Debug)"; - SDKROOT = ""; + SDKROOT = macosx; SKIP_INSTALL = YES; STRIP_INSTALLED_PRODUCT = NO; }; @@ -5651,7 +5651,7 @@ MACOSX_DEPLOYMENT_TARGET = 10.5; OTHER_CFLAGS = "-I./../../"; PRODUCT_NAME = DeSmuME; - SDKROOT = ""; + SDKROOT = macosx; STRIP_INSTALLED_PRODUCT = NO; VALIDATE_PRODUCT = YES; }; diff --git a/desmume/src/frontend/cocoa/cocoa_GPU.h b/desmume/src/frontend/cocoa/cocoa_GPU.h index 22841f872..881b195c5 100644 --- a/desmume/src/frontend/cocoa/cocoa_GPU.h +++ b/desmume/src/frontend/cocoa/cocoa_GPU.h @@ -42,7 +42,7 @@ class GPUEventHandlerOSX; } @property (assign, nonatomic) GPUClientFetchObject *GPUFetchObject; -@property (readonly, nonatomic) int32_t numberViewsUsingDirectToCPUFiltering; +@property (readonly, nonatomic) volatile int32_t numberViewsUsingDirectToCPUFiltering; - (const NDSDisplayInfo &) fetchDisplayInfoForIndex:(const u8)bufferIndex; - (pthread_rwlock_t *) rwlockFramebufferAtIndex:(const u8)bufferIndex;