summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/IniFile.cpp6
-rw-r--r--Source/Core/Common/Src/StdThread.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/IniFile.cpp b/Source/Core/Common/Src/IniFile.cpp
index c81c060f1d..acad498106 100644
--- a/Source/Core/Common/Src/IniFile.cpp
+++ b/Source/Core/Common/Src/IniFile.cpp
@@ -459,7 +459,11 @@ bool IniFile::Save(const char* filename)
return false;
}
- for (std::vector<Section>::const_iterator iter = sections.begin(); iter != sections.end(); ++iter)
+ // Currently testing if dolphin community can handle the requirements of C++11 compilation
+ // If you get a compiler error on this line, your compiler is probably old.
+ // Update to g++ 4.4 or a recent version of clang (XCode 4.2 on OS X).
+ // If you don't want to update, complain in a google code issue, the dolphin forums or #dolphin-emu.
+ for (auto iter = sections.begin(); iter != sections.end(); ++iter)
{
const Section& section = *iter;
diff --git a/Source/Core/Common/Src/StdThread.h b/Source/Core/Common/Src/StdThread.h
index 6e9e903561..b64dbf2c4e 100644
--- a/Source/Core/Common/Src/StdThread.h
+++ b/Source/Core/Common/Src/StdThread.h
@@ -7,7 +7,9 @@
#if GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__
// GCC 4.4 provides <thread>
+#ifndef _GLIBCXX_USE_SCHED_YIELD
#define _GLIBCXX_USE_SCHED_YIELD
+#endif
#include <thread>
#else