From: Mikko Rasa Date: Wed, 18 Jul 2012 13:01:50 +0000 (+0300) Subject: Don't use long long on MSVC X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=commitdiff_plain;h=9bd3968eaaabb278d22f182365d022704d2a2cf1 Don't use long long on MSVC --- 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 { };