diff --git a/CMakeLists.txt b/CMakeLists.txt index bb71c0c6c..2818cda7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,7 +234,8 @@ if(NOT MSVC) if(IOS) add_definitions(-DGL_ETC1_RGB8_OES=0) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -U__STRICT_ANSI__") + set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++") # armv7s (without resorting to FastMemory) is still a work in progress # comment out the next line to enable default/"standard" architectures (which is a fat armv7/armv7s binary) set(CMAKE_OSX_ARCHITECTURES "armv7") diff --git a/Common/ChunkFile.h b/Common/ChunkFile.h index 3e939dcf8..288309ca6 100644 --- a/Common/ChunkFile.h +++ b/Common/ChunkFile.h @@ -28,19 +28,11 @@ // - Serialization code for anything complex has to be manually written. #include -#ifdef IOS -#include -namespace std { - using std::tr1::unordered_map; - using std::tr1::unordered_multimap; -} -#else #include -#endif #include #include #include -#if defined(IOS) || defined(MACGNUSTD) +#if defined(MACGNUSTD) #include #else #include @@ -50,7 +42,7 @@ namespace std { #include "FileUtil.h" #include "../ext/snappy/snappy-c.h" -#if defined(IOS) || defined(MACGNUSTD) +#if defined(MACGNUSTD) namespace std { using tr1::is_pointer; } diff --git a/Common/StdMutex.h b/Common/StdMutex.h index 40aeb02cf..e03a5782e 100644 --- a/Common/StdMutex.h +++ b/Common/StdMutex.h @@ -8,7 +8,7 @@ // Note: __MAC_10_7 is defined on 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(MACGNUSTD) + && !defined(ANDROID) && !defined(__SYMBIAN32__) && !defined(MACGNUSTD) #include #else diff --git a/Core/HLE/sceKernelMutex.cpp b/Core/HLE/sceKernelMutex.cpp index 6beee42a7..d942134aa 100644 --- a/Core/HLE/sceKernelMutex.cpp +++ b/Core/HLE/sceKernelMutex.cpp @@ -17,15 +17,7 @@ #include #include -#ifdef IOS -#include -namespace std { - using std::tr1::unordered_map; - using std::tr1::unordered_multimap; -} -#else #include -#endif #include "Common/ChunkFile.h" #include "Core/MemMap.h" #include "Core/HLE/HLE.h" diff --git a/Core/MIPS/JitCommon/JitBlockCache.h b/Core/MIPS/JitCommon/JitBlockCache.h index 3ea899a77..5592d8dbc 100644 --- a/Core/MIPS/JitCommon/JitBlockCache.h +++ b/Core/MIPS/JitCommon/JitBlockCache.h @@ -18,15 +18,7 @@ #pragma once #include -#ifdef IOS -#include -namespace std { - using std::tr1::unordered_map; - using std::tr1::unordered_multimap; -} -#else #include -#endif #include #include diff --git a/Core/MIPS/MIPSAnalyst.cpp b/Core/MIPS/MIPSAnalyst.cpp index 8ba9b4335..32e4b3f86 100644 --- a/Core/MIPS/MIPSAnalyst.cpp +++ b/Core/MIPS/MIPSAnalyst.cpp @@ -16,15 +16,7 @@ // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. #include -#ifdef IOS -#include -namespace std { - using std::tr1::unordered_map; - using std::tr1::unordered_multimap; -}; -#else #include -#endif #include #include "base/mutex.h" #include "ext/cityhash/city.h" diff --git a/GPU/GLES/TransformPipeline.h b/GPU/GLES/TransformPipeline.h index 58889321d..461a9f890 100644 --- a/GPU/GLES/TransformPipeline.h +++ b/GPU/GLES/TransformPipeline.h @@ -17,15 +17,7 @@ #pragma once -#if defined(IOS) -#include -namespace std { - using std::tr1::unordered_map; -} -#else #include -#endif - #include "GPU/Common/GPUDebugInterface.h" #include "GPU/Common/IndexGenerator.h" #include "GPU/Common/VertexDecoderCommon.h"