From 9bd3968eaaabb278d22f182365d022704d2a2cf1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 18 Jul 2012 16:01:50 +0300 Subject: [PATCH] Don't use long long on MSVC --- source/type.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/type.h b/source/type.h index 6959e98..a7c57c4 100644 --- a/source/type.h +++ b/source/type.h @@ -19,7 +19,12 @@ struct Symbol struct IntType { static const char signature = 'i'; +#ifdef MSVC + typedef __int64 Store; +#else typedef long long int Store; +#endif + typedef Store Load; }; struct FloatType @@ -68,11 +73,19 @@ struct TypeInfo: IntType { }; template<> struct TypeInfo: IntType { }; +#ifdef MSVC +template<> +struct TypeInfo<__int64>: IntType { }; + +template<> +struct TypeInfo: IntType { }; +#else template<> struct TypeInfo: IntType { }; template<> struct TypeInfo: IntType { }; +#endif template<> struct TypeInfo: FloatType { }; -- 2.45.2