summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-06-17 21:44:03 +0000
committernakeee <nakeee@gmail.com>2009-06-17 21:44:03 +0000
commit697ce7b1ab2ffc5f1bf18bf9bfc37462fcb38183 (patch)
tree3e97c6b6c348b24749575bf7888d692814f5a12c /Source/Core/Common
parentff83f9eb714268d3b6437005a46d598bbd95c9bd (diff)
createtest fixes and compile fixes for linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3482 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/Common.h2
-rw-r--r--Source/Core/Common/Src/CommonFuncs.h3
-rw-r--r--Source/Core/Common/Src/Timer.h3
3 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h
index 8be00df4ae..fe792ee81d 100644
--- a/Source/Core/Common/Src/Common.h
+++ b/Source/Core/Common/Src/Common.h
@@ -92,8 +92,6 @@ namespace
#ifndef _SECURE_SCL
#error Please define _SECURE_SCL=0 in the project settings
#else
- template <bool> struct CompileTimeAssert;
- template<> struct CompileTimeAssert<true> {};
CompileTimeAssert<_SECURE_SCL==0> x;
#endif
}
diff --git a/Source/Core/Common/Src/CommonFuncs.h b/Source/Core/Common/Src/CommonFuncs.h
index 4f128c4726..453e23b866 100644
--- a/Source/Core/Common/Src/CommonFuncs.h
+++ b/Source/Core/Common/Src/CommonFuncs.h
@@ -24,6 +24,9 @@
#define SLEEP(x) usleep(x*1000)
#endif
+template <bool> struct CompileTimeAssert;
+template<> struct CompileTimeAssert<true> {};
+
#ifndef _WIN32
#if defined __APPLE__
diff --git a/Source/Core/Common/Src/Timer.h b/Source/Core/Common/Src/Timer.h
index e905d962e4..292829f122 100644
--- a/Source/Core/Common/Src/Timer.h
+++ b/Source/Core/Common/Src/Timer.h
@@ -20,8 +20,9 @@
#include "Common.h"
#include <string>
+#ifdef _WIN32
#include <mmsystem.h>
-
+#endif
namespace Common
{
class Timer