From 9ca8330aaef43928067e7173cd0bf3b7dfe18edc Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 11 Aug 2014 04:09:12 -0700 Subject: [PATCH] Mac: update for compatibility (fix compile breaks) with Apple LLVM 5.0 compiler under Xcode 5. --- clientgui/mac/config.h | 3 +++ mac_build/boinc.xcodeproj/project.pbxproj | 24 ++++++++--------------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/clientgui/mac/config.h b/clientgui/mac/config.h index 0d834c1c82..fe8ad02429 100644 --- a/clientgui/mac/config.h +++ b/clientgui/mac/config.h @@ -214,6 +214,9 @@ /* Define to 1 if you have the `strcasestr' function. */ #define HAVE_STRCASESTR 1 +/* Define to 1 if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + /* Define to 1 if you have the `strtoull' function. */ #define HAVE_STRTOULL 1 diff --git a/mac_build/boinc.xcodeproj/project.pbxproj b/mac_build/boinc.xcodeproj/project.pbxproj index 5d32930673..16ff8ca99d 100755 --- a/mac_build/boinc.xcodeproj/project.pbxproj +++ b/mac_build/boinc.xcodeproj/project.pbxproj @@ -3561,7 +3561,6 @@ "-D__WXMAC__", "-DSANDBOX", "-D_DEBUG", - "-DHAVE_STRCASECMP_IN_STRING_H", "-DMAC_OS_X_VERSION_MAX_ALLOWED=1050", ); OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; @@ -3619,7 +3618,6 @@ "-D__WXMAC__", "-DSANDBOX", "-D_NDEBUG", - "-DHAVE_STRCASECMP_IN_STRING_H", "-DBUILDING_MANAGER", "-DMAC_OS_X_VERSION_MAX_ALLOWED=1050", ); @@ -3695,8 +3693,7 @@ DD81C79C144D8DA9000BE61A /* Development */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)"; - ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; EXECUTABLE_PREFIX = lib; PRODUCT_NAME = jpeg; WARNING_CFLAGS = ( @@ -3994,8 +3991,7 @@ DD9E2352091CBDAE0048316E /* Development */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)"; - ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; HEADER_SEARCH_PATHS = ""; OTHER_LDFLAGS = ""; PRODUCT_NAME = boinc; @@ -4005,8 +4001,7 @@ DD9E235A091CBDAE0048316E /* Development */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)"; - ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; HEADER_SEARCH_PATHS = ../lib; LIBRARY_SEARCH_PATHS = ../lib; PRODUCT_NAME = boinc_api; @@ -4042,8 +4037,7 @@ DD9E2366091CBDAE0048316E /* Development */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1)"; - ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1 = "ppc i386"; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; DEPLOYMENT_POSTPROCESSING = YES; @@ -4124,8 +4118,7 @@ DD9E2382091CBDAE0048316E /* Development */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1)"; - ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1 = "ppc i386"; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEPLOYMENT_POSTPROCESSING = NO; @@ -4207,8 +4200,7 @@ DDB873FD0C850BC800E0DE1F /* Development */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)"; - ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; HEADER_SEARCH_PATHS = ../samples/jpeglib; PRODUCT_NAME = boinc_graphics2; }; @@ -4273,9 +4265,9 @@ DDF9EC04144EB14B005D6144 /* Development */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ONLY_ACTIVE_ARCH_PRE_XCODE_3_1)"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; EXECUTABLE_PREFIX = lib; - ONLY_ACTIVE_ARCH_PRE_XCODE_3_1 = "$(NATIVE_ARCH_ACTUAL)"; + ONLY_ACTIVE_ARCH = YES; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Development;