X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftype.h;h=a7c57c40d230b55e15dc1d5313039e1d39cf347a;hb=9bd3968eaaabb278d22f182365d022704d2a2cf1;hp=242a9e11d1bed7c30cf8bbc978ff1b001133d74b;hpb=e5d760ccfaaa01884be2424b62e47a24466e0c4b;p=libs%2Fdatafile.git diff --git a/source/type.h b/source/type.h index 242a9e1..a7c57c4 100644 --- a/source/type.h +++ b/source/type.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_DATAFILE_TYPE_H_ #define MSP_DATAFILE_TYPE_H_ @@ -26,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 @@ -75,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 { };