From 148c390524c4e888e6811f236a83a5f5165309d1 Mon Sep 17 00:00:00 2001 From: Sacha Date: Mon, 4 Feb 2013 09:55:56 +1000 Subject: [PATCH] Buildfix for Symbian --- Common/ChunkFile.h | 14 ++++++++++++++ Qt/Common.pro | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Common/ChunkFile.h b/Common/ChunkFile.h index 09773a7974..b9ae0be8ae 100644 --- a/Common/ChunkFile.h +++ b/Common/ChunkFile.h @@ -33,7 +33,9 @@ #include #include #include +#ifndef __SYMBIAN32__ #include +#endif #include "Common.h" #include "FileUtil.h" @@ -44,6 +46,18 @@ namespace std { using tr1::is_pointer; } #endif +#ifdef __SYMBIAN32__ +namespace std { + template + struct bool_constant { + typedef bool_constant type; + static const bool value = bool_value; + }; + template const bool bool_constant::value; + template struct is_pointer : public bool_constant {}; + template struct is_pointer : public bool_constant {}; +} +#endif template struct LinkedListItem : public T diff --git a/Qt/Common.pro b/Qt/Common.pro index 56c4949e51..5ad334ca6e 100755 --- a/Qt/Common.pro +++ b/Qt/Common.pro @@ -48,7 +48,8 @@ SOURCES += ../Common/ColorUtil.cpp \ ../Common/Timer.cpp \ ../Common/Version.cpp \ ../Common/Crypto/*.cpp -HEADERS += ../Common/ColorUtil.h \ +HEADERS += ../Common/ChunkFile.h \ + ../Common/ColorUtil.h \ ../Common/ConsoleListener.h \ ../Common/ExtendedTrace.h \ ../Common/FileSearch.h \