X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Ftype.h;h=a7c57c40d230b55e15dc1d5313039e1d39cf347a;hp=6959e98526669e4482c34d59b26530450c12fedd;hb=9bd3968eaaabb278d22f182365d022704d2a2cf1;hpb=5fd2c13c3036ea6a767802fdc9a2ab809ef8ec17 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 { };