From ba14c557ede53031f449008c500be10d3955a991 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut" Date: Tue, 27 Dec 2011 12:22:13 +0000 Subject: [PATCH] gsdx linux: * use memory instead of tr1 (was the experimental implementation of c++11) * remove strict aliasing optimization because I saw some bad warnings * Fix pthread of the previous commit. Use default attribute but it might need some tuning git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5020 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/CMakeLists.txt | 2 ++ plugins/GSdx/GSThread.h | 2 +- plugins/GSdx/stdafx.h | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/GSdx/CMakeLists.txt b/plugins/GSdx/CMakeLists.txt index 46254d9bc8..6cc36d59af 100644 --- a/plugins/GSdx/CMakeLists.txt +++ b/plugins/GSdx/CMakeLists.txt @@ -16,6 +16,8 @@ set(CommonFlags -mfpmath=sse #-Wstrict-aliasing # Allow to track strict aliasing issue. -Wunused-variable + -std=c++0x + -fno-strict-aliasing ) set(OptimizationFlags diff --git a/plugins/GSdx/GSThread.h b/plugins/GSdx/GSThread.h index a2ed3b7de4..8a205cb188 100644 --- a/plugins/GSdx/GSThread.h +++ b/plugins/GSdx/GSThread.h @@ -189,7 +189,7 @@ class GSCondVar pthread_cond_t m_cv; public: - GSCondVar() {pthread_cond_init(&m_cv);} + GSCondVar() {pthread_cond_init(&m_cv, NULL);} virtual ~GSCondVar() {pthread_cond_destroy(&m_cv);} void Set() {pthread_cond_signal(&m_cv);} diff --git a/plugins/GSdx/stdafx.h b/plugins/GSdx/stdafx.h index fdd228af1b..9eaef9a4bd 100644 --- a/plugins/GSdx/stdafx.h +++ b/plugins/GSdx/stdafx.h @@ -113,9 +113,7 @@ using namespace std; #ifdef __GNUC__ - #include - - using namespace std::tr1; + #include #endif