diff --git a/CMakeLists.txt b/CMakeLists.txt index 9df05408ba..418faf6336 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,8 +112,6 @@ endif() if(PANDORA) add_definitions(-DPANDORA) - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto -fuse-linker-plugin") - add_definitions(-mcpu=cortex-a8 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -mno-unaligned-access) endif() if(ARM) @@ -157,8 +155,9 @@ if(NOT MSVC) if(IOS) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++") elseif(APPLE) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -mmacosx-version-min=10.7") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -U__STRICT_ANSI__") # Karen/angelXwind: --macosx-version-min=10.7 is needed in order to produce binaries that OS X 10.7 Lion can execute. However, it seems that PPSSPP won't support 10.6 or lower without getting rid of -stdlib=libc++ ...which probably won't end well. So I guess PPSSPP will strictly be a 10.7+ app. + # vit9696: OSX 10.6 builds are possible: http://forums.ppsspp.org/showthread.php?tid=1826&pid=18875#pid18875 set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") endif() if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7.0) diff --git a/Common/ChunkFile.h b/Common/ChunkFile.h index 0bf5c4d357..d383d55f3f 100644 --- a/Common/ChunkFile.h +++ b/Common/ChunkFile.h @@ -34,7 +34,7 @@ #include #include #ifndef __SYMBIAN32__ -#if defined(IOS) || (defined(__APPLE__) && !defined(__MAC_10_7)) +#if defined(IOS) || defined(MACGNUSTD) #include #else #include @@ -45,7 +45,7 @@ #include "FileUtil.h" #include "../ext/snappy/snappy-c.h" -#if defined(IOS) || (defined(__APPLE__) && !defined(__MAC_10_7)) +#if defined(IOS) || defined(MACGNUSTD) namespace std { using tr1::is_pointer; } diff --git a/Common/StdMutex.h b/Common/StdMutex.h index d3410e70a1..57bc409c17 100644 --- a/Common/StdMutex.h +++ b/Common/StdMutex.h @@ -6,9 +6,9 @@ #define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) // Note: __MAC_10_7 is defined on 10.7+. -#if (GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ || defined(__MAC_10_7)) \ +#if (GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ || defined(__APPLE__)) \ /* GCC 4.4 provides , except on these platforms: */ \ - && !defined(ANDROID) && !defined(__SYMBIAN32__) && !defined(IOS) + && !defined(ANDROID) && !defined(__SYMBIAN32__) && !defined(IOS) && !defined(MACGNUSTD) #include #else diff --git a/Core/HLE/sceAtrac.cpp b/Core/HLE/sceAtrac.cpp index 2403ea2c8e..ea51c3de97 100644 --- a/Core/HLE/sceAtrac.cpp +++ b/Core/HLE/sceAtrac.cpp @@ -84,10 +84,9 @@ struct AtracLoopInfo { }; struct Atrac { - Atrac() : decodePos(0), decodeEnd(0), loopNum(0), atracChannels(2), - atracBitrate(64), atracBytesPerFrame(0), atracBufSize(0), currentSample(0), - endSample(-1), loopinfoNum(0), firstSampleoffset(0), data_buf(0), - atracOutputChannels(2), atracID(-1) { + Atrac() : atracID(-1), data_buf(0), decodePos(0), decodeEnd(0), atracChannels(2), atracOutputChannels(2), loopNum(0), + atracBitrate(64), atracBytesPerFrame(0), atracBufSize(0), + currentSample(0), endSample(-1), firstSampleoffset(0), loopinfoNum(0) { memset(&first, 0, sizeof(first)); memset(&second, 0, sizeof(second)); #ifdef USE_FFMPEG diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index d90f61f7c6..1bfd58aad9 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -743,7 +743,7 @@ static inline u32 QuickTexHash(u32 addr, int bufw, int w, int h, u32 format) { #ifdef _M_SSE // Make sure both the size and start are aligned, OR will get either. - if ((((u32)checkp | sizeInRAM) & 0xf) == 0) { + if ((((u32)(intptr_t)checkp | sizeInRAM) & 0xf) == 0) { __m128i cursor = _mm_set1_epi32(0); const __m128i *p = (const __m128i *)checkp; for (u32 i = 0; i < sizeInRAM / 16; ++i) { diff --git a/ffmpeg b/ffmpeg index 5062ce9acc..b29d7591c8 160000 --- a/ffmpeg +++ b/ffmpeg @@ -1 +1 @@ -Subproject commit 5062ce9acc4036c0a015219c9c19761b86110aba +Subproject commit b29d7591c84ced898da8c2fe66cad41cbac13210 diff --git a/lang b/lang index a8d260acb3..69c53c982b 160000 --- a/lang +++ b/lang @@ -1 +1 @@ -Subproject commit a8d260acb367e922c7f4792ab134c8a02052c854 +Subproject commit 69c53c982b27a588fafc636bac3083a9ac1df5f5 diff --git a/native b/native index 30802a1120..f9ab24cb3d 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit 30802a1120b9c2d9a4e4d17d2b1a539e9684332c +Subproject commit f9ab24cb3de114f05769267fd7c3e50882eaa5af